2017-06-29 19 views
0

私はホイールをインストールしようとしました。 しかし、これらのエラーが出るたびに、pyを使ってPythonでいくつかのモジュールをインストールしています。何が問題なのか、それを解決する方法は?PythonのPipによるエラーを解決するには?

Microsoft Windows [バージョン6.3.9600] (c)2013 Microsoft Corporation。全著作権所有。あなたのエラーがここで言及されて

C:\Users\user>cd.. 

C:\Users>cd.. 

C:\>cd "Program Files" 

C:\Program Files>cd Python36 

C:\Program Files\Python36>cd Scripts 

C:\Program Files\Python36\Scripts>pip install wheel 
Collecting wheel 
    Using cached wheel-0.29.0-py2.py3-none-any.whl 
Installing collected packages: wheel 
Exception: 
Traceback (most recent call last): 
    File "c:\program files\python36\lib\site-packages\pip\basecommand.py", line 21 
5, in main 
    status = self.run(options, args) 
    File "c:\program files\python36\lib\site-packages\pip\commands\install.py", li 
ne 342, in run 
    prefix=options.prefix_path, 
    File "c:\program files\python36\lib\site-packages\pip\req\req_set.py", line 78 
4, in install 
    **kwargs 
    File "c:\program files\python36\lib\site-packages\pip\req\req_install.py", lin 
e 851, in install 
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix) 
    File "c:\program files\python36\lib\site-packages\pip\req\req_install.py", lin 
e 1064, in move_wheel_files 
    isolated=self.isolated, 
    File "c:\program files\python36\lib\site-packages\pip\wheel.py", line 345, in 
move_wheel_files 
    clobber(source, lib_dir, True) 
    File "c:\program files\python36\lib\site-packages\pip\wheel.py", line 316, in 
clobber 
    ensure_dir(destdir) 
    File "c:\program files\python36\lib\site-packages\pip\utils\__init__.py", line 
83, in ensure_dir 
    os.makedirs(path) 
    File "c:\program files\python36\lib\os.py", line 220, in makedirs 
    mkdir(name, mode) 
PermissionError: [WinError 5] Access is denied: 'c:\\program files\\python36\\Li 
b\\site-packages\\wheel' 

C:\Program Files\Python36\Scripts> 
+1

アクセス拒否。ターミナルアイコンを右クリックし、「管理者として実行」をクリックして上記の作業を行います。私はこれがあなたの問題を解決するはずだと思います。 –

答えて

1

PermissionError: [WinError 5] Access is denied: 

ので管理者としてコマンドプロンプトを実行します。

Windowsでは、実行可能ファイルを右クリックして[管理者として実行]を選択すると、管理者として実行できます。したがって、開始メニューで"cmd"を入力し、cmd.exerun it as administratorを右クリックします。

+0

はい、私もあなたの問題を解決すると思います。それを管理者として実行します。そうでない場合は、更新された出力で質問を編集してください。 –

関連する問題