pip installation error “No such file or directory: setup.py”

后端 未结 5 1381
耶瑟儿~
耶瑟儿~ 2021-02-05 01:49

I\'m getting installation error because pip couldn\'t find setup.py.

sudo pip install https://storage.googleapis.com/ten         


        
5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-05 02:28

    Tensorflow requires python -V 2.7. Since, lot of machine use the stable 2.6 version of python for their system build I would recommend parallel/alternative install of python 2.7. Then you can install pip with 2.7 version python interpreter. Please see below:

    #sudo wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
    #sudo python2.7 ez_setup.py
    #easy_install-2.7 pip
    #sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
    

提交回复
热议问题