gpt4 book ai didi

python - 如何在服务器上没有 root 访问权限的情况下完全安装 numpy?

转载 作者:行者123 更新时间:2023-12-04 19:19:08 25 4
gpt4 key购买 nike

我想在没有 root 访问权限的服务器上安装 numpy。我已经安装了 pip,但是当我尝试 pip install numpy我得到一个错误。

Command /home/wanglan0605/local/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_wanglan0605/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-gb9EVf-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_wanglan0605/numpy

Traceback (most recent call last):
File "/home/wanglan0605/local/bin/pip", line 11, in <module>
sys.exit(main())
File "/home/wanglan0605/local/lib/python2.7/site-packages/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/home/wanglan0605/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 70: ordinal not in range(128)

接下来我该怎么办?请给我一些想法

最佳答案

this bug ?

Any non-ASCII character in the log causes PIP to crash with UnicodeDecodeError.



有一个 patch suggested by remram44 on github ,当我之前遇到类似的错误时,这对我有用。

关于python - 如何在服务器上没有 root 访问权限的情况下完全安装 numpy?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26729868/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com