I m trying to install binance api on windows 10 and get this error:
ERROR: Command errored out with exit status 1:
command: 'c:\users\nikho\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\nikho\\AppData\\Local\\Temp\\pip-install-udog8jg5\\twisted_baf4607a0b15400dbdad7c4c4d71a93f\\setup.py'"'"'; __file__='"'"'C:\\Users\\nikho\\AppData\\Local\\Temp\\pip-install-udog8jg5\\twisted_baf4607a0b15400dbdad7c4c4d71a93f\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\nikho\AppData\Local\Temp\pip-record-qxfi2_c7\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\nikho\appdata\local\programs\python\python38\Include\Twisted'
And I saw this post Pip doesn't install Twisted on Windows. I tried it but doesnt work (also try to install 64bit version and 32bit version, my computer is 64)
Then I download from this site the last version: https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
I run it (doble click) and nothing happend, also I run in terminal like this and doesnt work:
pip install Twisted-19.2.1-cp37-cp37m-win_amd64.whl
Anyone knows how to fix it
Did you try :
pip install Twisted or pip install Twisted --user
Related
This is the error i get. it was working fine before, then i reinstalled python(i have added it to the system variables) and installed vscode if thats relevant.but even with windows terminal i get the same error. I did download the c++ with tools, followed the link and downloaded and installed it.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\chaitali\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Chaitali\\AppData\\Local\\Temp\\pip-install-3h22t0nk\\twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\Chaitali\\AppData\\Local\\Temp\\pip-install-3h22t0nk\\twisted\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Chaitali\AppData\Local\Temp\pip-record-ttosnncb\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\chaitali\appdata\local\programs\python\python39\Include\Twisted' Check the logs for full command output.
Try to install Twisted manually:
Download your version from this Python Extension Packages website and install it using (if you have Python 3.9 and win32 platform):
pip3 install Twisted‑20.3.0‑cp39‑cp39‑win32.whl
After that you'll be able to install Scrapy using:
pip3 install scrapy
I am installing the latest Grakn client python with this command:
pip3 install grakn-client
However after a while during the install I get this error:
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/j4/85rb7q1n55l950cyxc5h57n80000gn/T/pip-install-jx_f2vss/grpcio/setup.py'"'"'; file='"'"'/private/var/folders/j4/85rb7q1n55l950cyxc5h57n80000gn/T/pip-install-jx_f2vss/grpcio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/j4/85rb7q1n55l950cyxc5h57n80000gn/T/pip-record-yi2uyn5w/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/grpcio Check the logs for full command output.
I am using Python 3.8 and Grakn 1.8.3
For mac m1 setting variables worked for me, Used the following command:
CFLAGS="-I /opt/homebrew/opt/openssl/include" LDFLAGS="-L /opt/homebrew/opt/openssl/lib" GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 pip pip3 install grakn-client
I think there's a problem using the Grakn Python client 1.8.1 with Python 3.8.x, so please downgrade your Python to 3.7 or lower for now - this issue should be fixed soon.
I ran this command:
pip install numcodecs
And I got this error:
Error: Command errored out with exit status 1: 'c:\users\sunit\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\sunit\\AppData\\Local\\Temp\\pip-install-419pmst9\\numcodecs\\setup.py'"'"'; __file__='"'"'C:\\Users\\sunit\\AppData\\Local\\Temp\\pip-install-419pmst9\\numcodecs\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\sunit\AppData\Local\Temp\pip-record-5lw96050\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\sunit\appdata\local\programs\python\python38\Include\numcodecs' Check the logs for full command output.
What do I do?
I had the same error (trying to install zarr module, with the error coming from installing numcodecs). I was able to resolve it by updating my OSX to the newest version (Catalina), which then led to me reinstalling anaconda, Xcode, and previous Python packages from scratch. After doing that,
pip install numcodecs
still failed with the same error. However,
conda install numcodecs
or in my case:
conda install zarr
worked without error. It seems to have something to do with a conflict between Xcode tools and pip installer, which conda overcomes. My colleague was likewise unable to install via pip but could install via conda and a virtual environment on the first try, a faster option to try first before reinstalling everything.
Brief discussion of the issue on Github here.
On macOS I ran this command in Terminal:
sudo pip3 install face_recognition
It started installing and then threw this error:
ERROR: Command errored out with exit status 1:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c
'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/tmp/pip-install-75ks5d9l/dlib/setup.py'"'"';
file='"'"'/private/tmp/pip-install-75ks5d9l/dlib/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record /private/tmp/pip-record-bze0mci9/install-record.txt
--single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/dlib
Check the logs for full command output.
I read a suggestion about installing dlib first which also threw an error. How can I fix this?
First install cmake using following command:
pip3 install cmake
I am trying to install a package which needs psycopg2 as a dependency, so I installed psycopg2-binary using pip install psycopg2-binary but when I try to pip install django-tenant-schemas I get this error:
In file included from psycopg/psycopgmodule.c:27:0:
./psycopg/psycopg.h:34:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
You may install a binary package by installing 'psycopg2-binary' from PyPI.
If you want to install psycopg2 from source, please install the packages required for the build and try again.
For further information please check the 'doc/src/install.rst' file (also at <http://initd.org/psycopg/docs/install.html>).
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
ERROR: Command errored out with exit status 1:
/home/david/PycharmProjects/clearpath/venv/bin/python -u
-c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ckbbq00w/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ckbbq00w/psycopg2/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-pi6j7x5l/install-record.txt
--single-version-externally-managed
--compile
--install-headers /home/david/PycharmProjects/clearpath/venv/include/site/python3.7/psycopg2 Check the logs for full command output.
When I go into my projects (using PyCharm) repo settings I can see psycopg2-binary is installed. I assume this has something to do with the PATH but I can't seem to figure out how to solve the issue.
which psql: /usr/bin/psql
which pg_config: /usr/bin/pg_config
I am not comfortable doing much in the Environment variables as I really don't want to break something.
It seems that you try to install pscopg2, and it may cause problem if psycopg2-binary is already installed
Here are your logs on several lines:
ERROR: Command errored out with exit status 1:
/home/david/PycharmProjects/clearpath/venv/bin/python -u
-c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ckbbq00w/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ckbbq00w/psycopg2/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-pi6j7x5l/install-record.txt
--single-version-externally-managed
--compile
--install-headers /home/david/PycharmProjects/clearpath/venv/include/site/python3.7/psycopg2 Check the logs for full command output.
I would try to uninstall psycopg2-binary and then reinstall django-tenant-schemas
The issue seemed to be a bad install of libpq-fe-h that was fixed using a reinstall. Question was solved here