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

后端 未结 5 1380
耶瑟儿~
耶瑟儿~ 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:24

    I'm using ubuntu 12.04 64bits. I solve this issue by:

    mkdir -p ~/code/download/lib/tensorflow/
    cd ~/code/download/lib/tensorflow/
    virtualenv --system-site-packages tensorflow_for_ubuntu12_04_64bit_python2_7
    source tensorflow_for_ubuntu12_04_64bit_python2_7/bin/activate
    cd tensorflow_for_ubuntu12_04_64bit_python2_7
    pip install --upgrade tensorflow
    
    0 讨论(0)
  • 2021-02-05 02:26

    Try upgrade protobuf with pip install:

    sudo pip install --upgrade protobuf 
    sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/protobuf-3.0.0b2.post2-cp27-none-any.whl
    

    worked for me. The documentation has provided many solutions for various installation problems.

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2021-02-05 02:31

    from https://github.com/tensorflow/tensorflow/issues/56

    The command to type is "pip install --upgrade pip", and this should be added to the instructions right after where they tell the user to "source bin/activate"

    0 讨论(0)
  • 2021-02-05 02:50

    the filename you are running sdist with must be named setup.py running the file as say setup_something.py will fail

    0 讨论(0)
提交回复
热议问题