vprasopchai@vprasopchai-Aspire-4720Z:~/Downloads/Numeric-24.2$ python setup.py build
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
running build
running build_py
running build_ext
MA Version 12.2.0
Numeric Version 24.2
vprasopchai@vprasopchai-Aspire-4720Z:~/Downloads/Numeric-24.2$ python setup.py install
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
running install
running build
running build_py
running build_ext
running install_lib
creating /usr/local/lib/python2.7/dist-packages/Numeric
error: could not create '/usr/local/lib/python2.7/dist-packages/Numeric': Permission denied
答案1
此链接应该会为您指明正确的方向: https://docs.python.org/2/install/
注意:没有权限错误是对特权的引用。请尝试:
python setup.py build
sudo python setup.py install
或者
另一种选择是,如果您选择不使用 root 权限:
python setup.py build
python setup.py install --user