Fix virtualenvwrapper Error with Python Anaconda Installation - Mac OS X Terminal
У вашего броузера проблема в совместимости с HTML5
Getting this Mac OS X terminal message when using virtualenvwrapper with Anaconda Python installation?
/usr/bin/python: No module named virtualenvwrapper.
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader, check that the virtualenvwrapper has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.
My solution is in the video with the resources I reference in the video below.
RESOURCES
Explanation of what $PATH variable is in bash, the Mac OS X Terminal shell:
https://stackoverflow.com/questions/18409707/what-is-path-on-the-mac-unix-system
List of bash startup files used for bash shell configuration e.g. what variables will be in the environment - [variables can for example be the names of commands like ls]:
https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
They are:
/etc/profile
...if that file exists.
After reading that file, it looks for...
~/.bash_profile
~/.bash_login
~/.profile
virtualenvwrapper Installation and site-wide configuration docs:
https://virtualenvwrapper.readthedocs.io/en/latest/install.html#configuration
In Mac OS X Terminal, enter these commands to get the paths you'll need to enter...
[do not enter the $ sign e.g. enter...
virtual envwrapper
]
...
$ which virtualenvwrapper.sh
$ which python
$ which virtualenv
Example Code based on virtualenvwrapper docs:
export VIRTUALENVWRAPPER_PYTHON=/Users/Your UserName/anaconda3/bin/python
export VIRTUALENVWRAPPER_VIRTUALENV=/Users/Your UserName/anaconda3/bin/virtualenv
source /Users/Your UserName/anaconda3/bin/virtualenvwrapper.sh
Enter this terminal command to edit your startup file and copy and paste...
sudo nano ~/.bash_profile
# OR
sudo nano ~/.bash_login
# OR
sudo nano ~/.profile
Then paste this into the file you just opened...
export VIRTUALENVWRAPPER_PYTHON=/Users/UpAndAtThem/anaconda3/bin/python
export VIRTUALENVWRAPPER_VIRTUALENV=/Users/UpAndAtThem/anaconda3/bin/virtualenv
source /Users/UpAndAtThem/anaconda3/bin/virtualenvwrapper.sh
control+x
...then...
y
..then...
enter key
...to...save
Open a new terminal window and virtualenvwrapper error message should be gone.