|
发表于 2021-3-19 16:07:41
|
显示全部楼层
在安装PyYAML库时遇到这样的问题,有什么可尝试的解决办法吗?
下面是文字版的信息:
C:\Users\无极>pip install pyyaml
You are using pip version 7.0.1, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyyaml
Exception:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 223, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 280, in run
requirement_set.prepare_files(finder)
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 317, in prepare_files
functools.partial(self._prepare_file, finder))
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 304, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 469, in _prepare_file
session=self.session)
File "C:\Python27\lib\site-packages\pip\download.py", line 825, in unpack_url
session,
File "C:\Python27\lib\site-packages\pip\download.py", line 673, in unpack_http_url
from_path, content_type = _download_http_url(link, session, temp_dir)
File "C:\Python27\lib\site-packages\pip\download.py", line 884, 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 0xce in position 7: ordinal not in range(128)
C:\Users\无极>SyntaxError: invalid syntaxSyntaxError: invalid syntax
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|