SOLUTION Moja użytkownik nie posiadali uprawnienia do katalogu, pip, ja ponownie zainstalować Pythona 3.5 za pomocą sudo -H
flagęInstalacja pip dla Pythona 3.5
Próbuję zainstalować Tensorflow dla Pythona 3.5 za pomocą pip3 - ze względów opisany w this wydaniu github - ale kiedy instaluję używając sudo pip3 install *.whl
, instaluje się on do Pythona 3.4.
Jak mogę przekierować pip3
do instalacji w moim katalogu python 3.5?
biegnę na Ubuntu 14.04
[email protected]:~/Downloads$ python3.4 -m pip --version
pip 8.1.2 from /usr/local/lib/python3.4/dist-packages/pip-8.1.2-py3.4.egg (python 3.4)
[email protected]:~/Downloads$ python3.5 -m pip --version
/usr/local/bin/python3.5: No module named pip
Wygląda na to, że nie zostały jeszcze zainstalowane pip dla Pythona 3.5. Jak mogę to zrobić?
Próbowałem
[email protected]:~/Downloads$ pip install -U pip
Requirement already up-to-date: pip in /usr/local/lib/python3.4/dist-packages/pip-8.1.2-py3.4.egg
Również
[email protected]:~/Downloads$ whereis pip
pip: /usr/bin/pip /usr/bin/X11/pip /usr/local/bin/pip3.4 /usr/local/bin/pip /usr/local/bin/pip2.7 /usr/share/man/man1/pip.1.gz
nie mogę znaleźć żadnego wsparcia dla modernizacji do pip3.5
UPDATE
[email protected]:~/Downloads$ sudo apt-get install python3-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-setuptools is already the newest version.
The following packages were automatically installed and are no longer required:
libntdb1 linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic
linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic
linux-signed-image-4.2.0-27-generic python-ntdb
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
[email protected]:~/Downloads$ sudo python3.5 easy_install.py pip
python3.5: can't open file 'easy_install.py': [Errno 2] No such file or directory
[email protected]:~/Downloads$ python3.5 -m ensurepip
Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
[email protected]:~/Downloads$ sudo apt-get install pip3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pip3
[email protected]:~/Downloads$ sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libntdb1 linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic
linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic
linux-signed-image-4.2.0-27-generic python-ntdb
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
[email protected]:~/Downloads$ python3.5 -m ensurepip
Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
Zgodnie z zaleceniami @fwalsh
[email protected]:~/Downloads$ python3.5 get-pip.py
Traceback (most recent call last):
File "get-pip.py", line 19177, in <module>
main()
File "get-pip.py", line 194, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip
zipimport.ZipImportError: can't decompress data; zlib not available
Wydaje się jakbym brakuje różnego rodzaju zależnościami - Zamierzam spróbować ponownie zainstalować
https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py – fwalch
'pip już zaktualizowany' –
@fwalch Dodałem aktualizację, wydaje mi się, że brakuje mi wszelkiego rodzaju zależności - spróbuję ponownie zainstalować 3.5 –