所以我從源代碼easy-install-3.3獲得了python3.3.2,並且試圖讓它們很好地工作,但是我在其中一個服務器中遇到問題。在Ubuntu中,我只是這樣做:easy_install沒有安裝在正確的路徑上?
# Install python 3.3.2
cd /tmp/
wget http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2
tar xvf Python-3.3.2.tar.bz2
cd Python-3.3.2/
./configure --prefix=/usr/
make
make test
sudo make install
讓Python工作...這是好的,那麼:
# Install easy_install for python 3.3.2
cd /tmp/
wget https://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz
tar xzvf distribute-0.6.49.tar.gz
cd distribute-0.6.49
sudo python3 setup.py build
sudo python3 setup.py install
,然後我可以看到一些在輸出怪異:
...
Extracting distribute-0.6.49-py3.3.egg to /usr/bin/lib/python3.3/site-packages
distribute 0.6.49 is already the active version in easy-install.pth
Installing easy_install script to /usr/bin/bin
Installing easy_install-3.3 script to /usr/bin/bin
...
easy_install爲什麼被放置在/ usr/bin/bin? WTH?
而且,我在安裝與使用easy_install一切都存在:
sudo easy_install-3.3 gunicorn
Searching for gunicorn
Best match: gunicorn 18.0
Processing gunicorn-18.0-py3.3.egg
gunicorn 18.0 is already the active version in easy-install.pth
Installing gunicorn_django script to /usr/bin/bin
Installing gunicorn script to /usr/bin/bin
Installing gunicorn_paster script to /usr/bin/bin
Using /usr/bin/lib/python3.3/site-packages/gunicorn-18.0-py3.3.egg
Processing dependencies for gunicorn
Finished processing dependencies for gunicorn
雖然:
這python3和其中的easy_install - 3.3都指向的/ usr/bin中如預期!
當然,所有的二進制文件都存在,但它們在PATH上無法訪問......並且我不想編輯我的PATH env變量......關於正在發生什麼的任何想法?
你可以做'哪個python3'嗎? – poke
按預期方式位於/ usr/bin/python3中 – mimoralea