2016-12-17 6 views
0

これは簡単な質問です。私はMac OS X端末にHomebrew経由でPipをインストールしました。私がやろうとした次のことは、仮想環境をpip install virtualenv経由でインストールすることでした。それが問題に遭遇しました。次のエラーメッセージが表示されます。Mac OS X端末経由のPython用PIPによる仮想環境のインストール

Exception: 
Traceback (most recent call last): 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main 
    status = self.run(options, args) 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run 
    prefix=options.prefix_path, 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install 
    **kwargs 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install 
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix) 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files 
    isolated=self.isolated, 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files 
    clobber(source, lib_dir, True) 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 323, in clobber 
    shutil.copyfile(srcfile, destfile) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile 
    with open(dst, 'wb') as fdst: 
IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/virtualenv.py' 

誰も知らないですか? 私はこれを初めて知ったので、何をすべきかについて全く迷っています。

ありがとうございました。

+0

でyou.Supportを助けている場合、PIP


のあなたのコマンドを使用します。 –

+0

権限を昇格するには、コマンドの前に 'sudo'を入れます。つまり、' sudo pip install virtual env' – user783836

答えて

0

あなたは、これがそのコマンドは、パッケージ名をインストールピップのようなものですので、私は、Windowsのユーザー午前あなたを助けるかもしれないが、あなたは窓にpython27Scriptsフォルダに提示しなければならないが、私は知らないhttp://softwaretester.info/install-and-upgrade-pip-on-mac-os-x/ を見たことがありますmac-os-xです。これはまた、python27 /スクリプトにディレクトリを変更して、これはあなたが世界的にパッケージをインストールするには、root権限を必要と親指

関連する問題