1

Win10組み込みのLinuxシステムとタイプを使用していpip install -U .ますが、ひどいエラーが発生しました:

ERROR: Could not install packages due to an OSError: [('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/branches', '/tmp/pip-req-build-luuzar9x/.git/branches', "[Errno 22] Invalid argument: '/tmp/pip-req-build-luuzar9x/.git/branches'"), ('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/hooks', '/tmp/pip-req-build-luuzar9x/.git/hooks', "[Errno 22] Invalid argument: '/tmp/pip-req-build-luuzar9x/.git/hooks'"), ('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/info', '/tmp/pip-req-build-luuzar9x/.git/info', "[Errno 22] Invalid argument: '/tmp/pip-req-build-luuzar9x/.git/info'"), ('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/logs/refs/heads', '/tmp/pip-req-build-luuzar9x/.git/logs/refs/heads', "[Errno 22] Invalid argument: '/tmp/pip-req-build-luuzar9x/.git/logs/refs/heads'"), ('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/logs/refs/remotes/origin', '/tmp/pip-req-build-luuzar9x/.git/logs/refs/remotes/origin', "[Errno 22] Invalid argument: '/tmp/pip-req-build-luuzar9x/.git/logs/refs/remotes/origin'"), ('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/logs/refs/remotes', '/tmp/pip-req-build-luuzar9x/.git/logs/refs/remotes', "[Errno 22] Invalid argument: '/tmp/pip-req-build-luuzar9x/.git/logs/refs/remotes'"), ('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/logs/refs', '/tmp/pip-req-build-luuzar9x/.git/logs/refs', "[Errno 22] Invalid argument: '/tmp/pip-req-build-luuzar9x/.git/logs/refs'"), ('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/logs', '/tmp/pip-req-build-luuzar9x/.git/logs', "[Errno 22] Invalid argument: '/tmp/pip-req-build-luuzar9x/.git/logs'"), 

私はpython3.6を使用しており、組み込みのLinuxシステムが呼び出されました。なぜこのようなエラーが発生したのか、本当にわかりません。

4

1 に答える 1

0

Pythonのバージョンをアップグレードしようとしましたか?プログラムの追加と削除からウィンドウでそれを行うことができます。または、チョコレートがある場合は、powershell (管理者として開く) から次を実行するだけです。

choco upgrade python

Linux では、次のコマンドを実行して実行できます (ディストリビューションによっては、 aptの代わりにyumまたはdnfを使用する必要がある場合があります)。

apt update
apt upgrade python

ルート (管理者) でない場合は、コマンドの前に sudo を追加することをお勧めします。これで問題が解決することを願っています。

于 2021-02-01T07:58:47.000 に答える