因此,我建议按照 Python的OS X安装文档.请注意,这些说明提供了安装Python 2的命令.要安装Python 3,请运行:Note that these instructions provide the command to install Python 2. To install Python 3, you would run:brew install python3 # instead of 'brew install python'这些Python安装文档还链接到安装virtualenv的详细说明,并virtualenvwrapper .These Python installation docs also link to detailed instructions for installing virtualenv and virtualenvwrapper. 更新:看起来您已安装virtualenvwrapper,但配置不正确.安装后,我根据 virtualenvwrapper 的安装文档运行了以下代码,以进行配置:It looks like you have virtualenvwrapper installed, but not properly configured. When I installed it, I ran the following code based on installation docs for virtualenvwrapper to configure:# Create a directory to hold the virtual environments.mkdir $HOME/.virtualenvsecho "# Python's virtualenvwrapper-RELATEDexport WORKON_HOME=$HOME/.virtualenvssource /usr/local/bin/virtualenvwrapper.sh" >> ~/.bash_profilesource ~/.bash_profile 这篇关于在OSX 10.11.1上使用pip安装virtualenv virtualenvwrapper的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-18 13:17