Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install torch using pip instead of conda #19

Open
Akhil-Raj opened this issue Jun 21, 2024 · 0 comments
Open

install torch using pip instead of conda #19

Akhil-Raj opened this issue Jun 21, 2024 · 0 comments

Comments

@Akhil-Raj
Copy link

Akhil-Raj commented Jun 21, 2024

Hi,

using the given deid.yml file, where pytorch is installed using conda(pytorch::pytorch==1.10.0) was leading to the following issue when I imported torch :

python
import torch

gave :

python3.7/site-packages/torch/lib/libtorch_cpu.so: undefined symbol: iJIT_NotifyEvent

Solution was to install torch using pip instead of conda, i.e deleting

##lines before##
pytorch::pytorch==1.10.0
##lines after##

line in deid.yml file(which prevents torch to be installed by conda), and instead torch by pip instead :

##lines before##
- pip:
        - tensorflow-addons==0.15.0
        - wget==3.2
        - seqeval
        - scispacy==0.4.0
        - pycorenlp==0.3.0
        - https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.4.0/en_core_sci_sm-0.4.0.tar.gz
        - https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.4.0/en_core_sci_lg-0.4.0.tar.gz
        - nodejs==0.1.1
        - urllib3==2.0.7
        - torch==1.10.0 # new line added
##end of file##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant