私はこれに関するいくつかの投稿を見てきましたが、何も修正されていないようです。私は最初Python 3.5を使い始めました。ピップに未解決の問題がいくつかあると聞いて、Pythonをアンインストールして再インストールしました。3.4.4 -PIP --upgradeが動作しないPython3.4.4
pyautoguiを作業タスクに使用したいのですが、pyautoguiを直接インストールしようとします。 Python 3.4.4のインストール後、PILモジュールが見つからないことがわかります。 3.4.4をインストールしてpipを更新し、pyautoguiをインストールする別の記事を読みました。冷たいので、私は3.4.4をインストールしたので、私はpipをアップグレードする必要がありました。だから私は
Scripts\pip.exe install --upgrade pip
のルートフォルダのコマンドラインから入力しました。私がこれを得るたびに
Exception:
Traceback (most recent call last):
File "h:\python34\lib\shutil.py", line 527, in move
os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is
being used by another process: 'h:\\python34\\scripts\\pip.exe' -> 'C:\\Users\\z
jf\\AppData\\Local\\Temp\\pip-qo75adq9-uninstall\\python34\\scripts\\pip.exe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "h:\python34\lib\site-packages\pip\basecommand.py", line 211, in main
File "h:\python34\lib\site-packages\pip\commands\install.py", line 311, in run
File "h:\python34\lib\site-packages\pip\req\req_set.py", line 640, in install
File "h:\python34\lib\site-packages\pip\req\req_install.py", line 716, in unin
stall
File "h:\python34\lib\site-packages\pip\req\req_uninstall.py", line 125, in re
move
File "h:\python34\lib\site-packages\pip\utils\__init__.py", line 315, in renam
es
File "h:\python34\lib\shutil.py", line 540, in move
os.unlink(src)
PermissionError: [WinError 32] The process cannot access the file because it is
being used by another process: 'h:\\python34\\scripts\\pip.exe'
何もそのフォルダで実行されていません。私はそれに開いているウィンドウエクスプローラを持っていない、私はそこにすべてのファイルにアクセスする必要はありません、私は明らかにコマンドラインを使用して上位ディレクトリからそれを実行しています。ですから、なぜpip.exeが別のプロセスで使用されていると言っているのか分かりません。それが実行されている唯一のプロセスはそれ自体であり、それが問題ならば、どのようにしてそれをアップグレードする必要がありますか?
** EDIT:それは私がまだ再びpyautoguiをインストールしようとした働いたら**受け入れ答えごとに、PIPを更新するために得るために、私は、コマンド
python -m pip install -U pip
を使用。それでも、PILモジュールは見つけられませんでした。 PILはPythonイメージライブラリです。私は
python -m pip install image
python -m pip install pyautogui
あなたがPython 4を試してみたら、Guidoは恐怖に思うでしょう。 – Goyo
@Goyo lol、jesus。私は3.5を意味する。私はそれを変更します。 Brain lapse – zfrisch
もちろん、あなたは管理者として "cmd.exe"を実行しますか? –