[英]How can I install the python module YAML without ROOT ACCESS ( 'easy_install' and 'pip' are not available)?
[英]How can I install numpy exactly without root access on server?
我想在沒有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)
接下來我該怎么辦? 請給我一些想法
我嘗試了很多安裝python庫的方法。 沒有root用戶訪問權限的最有效的安裝python庫的方法是Anaconda 。 只需使用wget
命令和bash Anaconda-2.1.0-Linux-x86.sh
,然后按兩次Yes即可。 完成后,可以正確安裝所有常用軟件包。 與分別安裝這些軟件包相比,這確實是一種更方便的方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.