/numpy
文件夹下
$ sudo python3 setup.py install
sudo:python3:command not found
或者试试
$ sudo python3 distribute_setup.py
sudo:python3:command not found
$ python3
Python 3.2.2 (default, Sep 12 2013, 01:58:11)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
which python3
说
$ which python3
/usr/local/bin/python3
更新:
$ sudo which python3
which: no python3 in (/sbin:/bin:/usr/sbin:/usr/bin)
$ sudo echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/xxxx/bin
更新2:
$ sudo sh -c 'echo $PATH'
/sbin:/bin:/usr/sbin:/usr/bin
我有 rhel/redhat 并通过下载包成功安装了 python3.2.2。那些关于 apt-get 的线程不适用于这个版本。有人有想法吗?