pip install 任何东西都会得到以下输出:
Exception:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\
basecommand.py", line 209, in main
status =
self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\
install.py", line 299, in run
requirement_set.prepare_files(finder)
File "C:\Python27\lib\site-packages\pip\req\
req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:\Python27\lib\site-packages\pip\req\
req_set.py", line 577, in _prepare_file
session=self.session, hashes=hashes)
File "C:\Python27\lib\site-packages\pip\
download.py", line 810, in unpack_url
hashes=hashes
File "C:\Python27\lib\site-packages\pip\
download.py", line 649, in unpack_http_url
hashes)
File "C:\Python27\lib\site-packages\pip\
download.py", line 869, 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: 'ascii' codec can't decode byte 0xb2 in position 7: ordinal not in range(128)
python -m pip install --upgrade pip 也是一样,求解决办法
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/301350
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.