前提・実現したいこと
Python2.7.15でのpip install を行いたいです。
発生している問題・エラーメッセージ
エラー1 pip2 install BeautifulSoup 4 Collecting BeautifulSoup Cache entry deserialization failed, entry ignored Exception: Traceback (most recent call last): File "c:\python27\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "c:\python27\lib\site-packages\pip\commands\install.py", line 324, in run requirement_set.prepare_files(finder) File "c:\python27\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "c:\python27\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes) File "c:\python27\lib\site-packages\pip\download.py", line 821, in unpack_url hashes=hashes File "c:\python27\lib\site-packages\pip\download.py", line 659, in unpack_http_url hashes) File "c:\python27\lib\site-packages\pip\download.py", line 880, in _download_http_url file_path = os.path.join(temp_dir, filename) File "c:\python27\lib\ntpath.py", line 85, in join result_path = result_path + p_path UnicodeDecodeError: 'utf8' codec can't decode byte 0x8d in position 7: invalid start byte You are using pip version 9.0.3, however version 20.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. エラー2 pip2 install -U pip Collecting pip Cache entry deserialization failed, entry ignored Exception: Traceback (most recent call last): File "c:\python27\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "c:\python27\lib\site-packages\pip\commands\install.py", line 324, in run requirement_set.prepare_files(finder) File "c:\python27\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "c:\python27\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes) File "c:\python27\lib\site-packages\pip\download.py", line 821, in unpack_url hashes=hashes File "c:\python27\lib\site-packages\pip\download.py", line 659, in unpack_http_url hashes) File "c:\python27\lib\site-packages\pip\download.py", line 880, in _download_http_url file_path = os.path.join(temp_dir, filename) File "c:\python27\lib\ntpath.py", line 85, in join result_path = result_path + p_path UnicodeDecodeError: 'utf8' codec can't decode byte 0x8d in position 7: invalid start byte You are using pip version 9.0.3, however version 20.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
該当のソースコード
python
1pip2 install BeautifulSoup 4
試したこと
You are using pip version 9.0.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
と書いてあるので、pip2 install -U pip を実行しました。
結果は、エラー2のものです。
補足情報(FW/ツールのバージョンなど)
windows10 64bit
Python 2.7.15
BeautifulSoup 4
Python 3.8.2も同じPC内に存在しています。
回答1件
あなたの回答
tips
プレビュー