When running the command cloud app deploy in the command line, it fails on installing requirements.txt after it hits "Running setup.py install for appscript: started".
Command "/env/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-18grw9xa/appscript/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-vm76fdr2/install-record.txt --single-version-externally-managed --compile --install-headers /env/include/site/python3.6/appscript" failed with error code 1 in /tmp/pip-install-18grw9xa/appscript/
Step #1: You are using pip version 10.0.1, however version 19.2.2 is available.
Step #1: You should consider upgrading via the 'pip install --upgrade pip' command.
Step #1: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
It seems like you need to upgrade your pip. Take a look here Failed with error code 1 to try to do it. It must works for you.
Related
I am trying to migrate to Cloud Endpoints Frameworks 2.0 for App Engine from v1 in Python
When I pip install pip install -t lib google-endpoints --ignore-installed, I get an error
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-blaNgj/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-E6OxwC-record/install-record.txt --single-version-externally-managed --compile --home=/tmp/tmp_5iRxU" failed with error code 1 in /private/tmp/pip-build-blaNgj/pycrypto
How to fix this?
I have also tried sudo pip install -t lib google-endpoints --ignore-installed, but it didn't help
It is very hard to read the error message you pasted, since it's all on one line, but I think the issue you're having may be due to being on a Mac and not having either XCode or the XCode command line tools installed.
Try running 'gcc' at the command line and seeing if it says you need to install something.
I am unable to install psutil by requeriments.txt neither by logging in with heroku run bash command and using the pip install psutil command.
The log is very large, so, I will put the "most important" part of it:
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-759b4csi/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-addox7ji-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-759b4csi/psutil/
Can someone help me with this?
I am using python 3.6.0 and pip 9.0.1
I used pip freeze > requirements.txt to generate a new requirements and this new file was processed by the deploy tool correctly.
I have tried to install both the PIL and PILLOW packages in pycharm but I'm getting some errors when I try from the terminal as suggested. How can I resolve them?
Error:
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
followed by:
Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-v9j6b44w/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-im6_90gt-record/install-record.txt --single-version-externally-managed --compile --user" failed with error code 1 in /tmp/pip-build-v9j6b44w/Pillow
You need to install python development tools first
Python 2:
sudo apt-get install python-dev python-setuptools
Python 3:
sudo apt-get install python3-dev python3-setuptools
See other requirements in this SO answer
I am trying to intall gcovr on ubuntu using
pip install gcovr
but it gives this error
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_mymachine/gcovr/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-uqjIdg-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_mymachin/gcovr
Storing debug log for failure in /home/mymachin/.pip/pip.log
Any ideas?
Thanks
I had no problems installing it this way:
sudo pip install gcovr
No errors.
If you're on Ubuntu 14.04, you may need to upgrade your pip.
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python get-pip.py
I tried pip install pycrypto using the virtualenv pip.
When I'm using sudo the installation succeeds, but not inside the virtual environment which does not help me.
The sudo apt-get install python-dev solution didn't help either. And also using easy_install and yum didn't help.
This is the bottom line of the error i get when I'm trying to install:
Command /home/ubuntu/conceep-env/bin/python -c "import setuptools,tokenize;__file__='/home/ubuntu/conceep-env/build/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/tmp/pip-NaKMgy-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/conceep-env/include/site/python2.7 failed with error code 1 in /home/ubuntu/conceep-env/build/pycrypto
Storing debug log for failure in /var/tmp/tmp3k2sTZ
Just fixed it using sudo path/to/my/virtenv/bin/pip install pycrypto.