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

python3 install issues #1

Open
lucylow opened this issue Aug 24, 2019 · 5 comments
Open

python3 install issues #1

lucylow opened this issue Aug 24, 2019 · 5 comments

Comments

@lucylow
Copy link
Owner

lucylow commented Aug 24, 2019

fairseq lucylow$ pip install -r requirements.txt


Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site

@lucylow
Copy link
Owner Author

lucylow commented Aug 25, 2019

export PYTHONHOME=/usr/local

If the PYTHONHOME environment variable is not set, then prefix and exec_prefix default to /usr/local

@lucylow
Copy link
Owner Author

lucylow commented Aug 25, 2019

echo $PATH

@lucylow
Copy link
Owner Author

lucylow commented Aug 25, 2019

which pip
//anaconda/bin/pip

@lucylow
Copy link
Owner Author

lucylow commented Aug 25, 2019

on my computer: /usr/local/lib/python3.6/site-packages/

needs to have :
/usr/local/lib/python3.6/site-packages/fairseq-0.7.2.dist-info
/usr/local/lib/python3.6/site-packages/+(other fairseq required files)

@lucylow
Copy link
Owner Author

lucylow commented Aug 26, 2019

other random stuff for debugging

  1. Print file path

echo $PATH

  1. check pip

which pip
//anaconda/bin/pip

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