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

Update README.md #4

Open
wants to merge 3 commits into
base: espnet_v1.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pytorch_binding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Now install the bindings: (Please make sure the GCC version >= 4.9)
cd pytorch_binding
python setup.py install
```
If installed successfully and you are using virtualenv, plz restart your venv
```
deactivate
cd <your_python_virtualenv>/bin
source activate
```
Comment on lines +35 to +40
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why would you need to restart the virtual env here?

Copy link
Author

@YooSungHyun YooSungHyun Jan 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is why, when I use python virtualenv,
activate env -> install warprnnt_pytorch -> python3 -> from warprnnt_pytorch import RNNTLoss -> module not find
activate env -> install warprnnt_pytorch -> restart venv -> python3 -> from warprnnt_pytorch import RNNTLoss -> success

I think, maybe some beginner is not used to this situation. so, add some kindness for safety


If you try the above and get a dlopen error on OSX with anaconda3 (as recommended by pytorch):
```
Expand Down