2016-07-08 7 views
0

私はすでにMacにpipとvirtualenvをインストールしましたが、virtualenvwrapperをインストールしようとすると問題に遭遇しました。私はそれを再インストールしようとすると、それは言う:virtualenvwrapperをEl Capitanにインストールするには?

The directory '/Users/mhcadmin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
The directory '/Users/mhcadmin/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages 
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from virtualenvwrapper) 
Requirement already satisfied (use --upgrade to upgrade): virtualenv-clone in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from virtualenvwrapper) 
Requirement already satisfied (use --upgrade to upgrade): stevedore in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from virtualenvwrapper) 
Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from stevedore->virtualenvwrapper) 
Requirement already satisfied (use --upgrade to upgrade): pbr>=1.6 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from stevedore->virtualenvwrapper) 

しかし、私はmkvirtualenv実行したときに、私は次のようなメッセージ

mhcadmin$ mkvirtualenv 

-bash: mkvirtualenv: command not found 

を取得し、私も Installing virtualenv virtualenvwrapper with pip on osx 10.11.1 この記事に従うが、それはうまくいきませんでしたを試してみました。

これは私のbash_profileには次のようになります。

# Python's virtualenvwrapper-RELATED 

export WORKON_HOME=/Users/mhcadmin/.virtualenvs 

source /usr/local/bin/virtualenvwrapper.sh 

と、これは私のbashrcには、次のようになります。

export WORKON_HOME=~/.virtualenvs 

source /usr/local/bin/virtualenvwrapper.sh 
+0

あなたが提供しているリンクは無しです有益なそれは、Python開発者のAppleの立場も含めた。これを言って、Appleが出荷したpythonにvirtualenvをインストールしないでください。私はこの目的のためにvirtualenvのためのより良い選択肢であるミニコンダを使用します。 – alvits

+0

エラーメッセージのアドバイスを受け取り、 'sudo -H'を使いましたか? – MattDMo

+1

@alvits OPはApple出荷のPythonにインストールされていません。彼らはpython.orgバージョンを使用しています。 – MattDMo

答えて

1

はそれを考え出しました。ここで

http://forums.macrumors.com/threads/how-do-you-find-folders-like-usr-local-bin-in-finder.99576/

私は

which virtualenvwrapper.sh 

その後、私はちょうどコピーを使用してvirtualenvwrapper.shを見つけた後

open -a Finder /usr/local/bin 

を入力して、USR/local/binにアクセスできることが分かっvirtualenvwrapper.shをusr/local/binにコピー

+0

私のvirtualenvwrapper.shは、usr/local/binではなくPython Frameworkフォルダにありました。 –

関連する問題