Cannot install PROJ
>>pip install git+https://github.com/OSGeo/PROJ.git
Collecting git+https://github.com/OSGeo/PROJ.git
Cloning https://github.com/OSGeo/PROJ.git to c:\users\lenovo\appdata\local\temp\pip-req-build-jwr6msmg
ERROR: Command errored out with exit status 1:
command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\lenovo\AppData\Local\Temp\pip-pip-egg-info-w2azftsy'
cwd: C:\Users\lenovo\AppData\Local\Temp\pip-req-build-jwr6msmg\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python37\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I tried installing it manually using the source file, But it is also giving the following error
>>> pip install proj-7.1.1.tar.gz
Processing e:\wihg\15-09-2020\surfacewave tomography\iris_data\test\proj-7.1.1.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\lenovo\AppData\Local\Temp\pip-pip-egg-info-2t2y4p78'
cwd: C:\Users\lenovo\AppData\Local\Temp\pip-req-build-3y5iufx3\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python37\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
How to solve this error? (Have to install it in Non-conda environment)
PROJ is a C library, not a Python package, so you cannot use pip to install it.
If you just want to work with PROJ from Python, you can use PyPROJ and install it with pip install pyproj. On MacOS, Linux, and Windows this will give you pre-built wheels that already include PROJ.
If you're trying to install it for CartoPy (based on your tags) you'll need to install PROJ separately following their install instructions.
Related
Trying to install terraform_utils with pip on python 2.7 on Mac.
ERROR: Command errored out with exit status 1:
command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-p0O4_9/terraform-utils/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-p0O4_9/terraform-utils/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/tmp/pip-pip-egg-info-30t_an
cwd: /private/tmp/pip-install-p0O4_9/terraform-utils/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-install-p0O4_9/terraform-utils/setup.py", line 8
def read_file(path: Union[str, Path]) -> str:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
can anyone help with the above error? not able to figure out what's missing!
Looks like you are running this code with Python2.7 but it is supported only by Python 3.5+. This syntax refers to static typing, more information here:
https://docs.python.org/3/library/typing.html
I'm trying to install tensorflow-recommenders using pip but I keep getting this error.
I made sure I had Tensorflow 2.x installed and upgraded, but I keep getting the same error after running this command:
pip install tensorflow-recommenders
Error:
command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py'"'"'; __file__='"'"'/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-pip-egg-info-n6vhs1
cwd: /private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py", line 17, in <module>
import pathlib
ImportError: No module named pathlib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I tried everything I could, so if anyone has any suggestions it'd be super helpful!
So I tried following a tutorial from answers to thos question How to properly install wxPython?
Install python 3xxx in your system opting (Add 3xxx to your path).
I had it installed by now
open python CLI to see whether python is working or not.>>then open command prompt (CMD).
What is python CLI? How do I check if it works or not?
type PIP to see whether pip is installed or not.
It was installed, version 20.1.1
enter command : pip install wheel
It was successfully installed
enter command : pip install pygame
After downloading the package it gave me this:
command: 'e:\prg\inkscape\bin\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-hn5zcy3g\\pygame\\setup.py'"'"'; __file__='"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-hn5zcy3g\\pygame\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\irbis\AppData\Local\Temp\pip-pip-egg-info-o4vuki0n'
cwd: C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\pygame\
Complete output (17 lines):
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using WINDOWS configuration...
Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x64"? [Y/n]Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\pygame\setup.py", line 194, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\pygame\buildconfig\config.py", line 210, in main
deps = CFG.main(**kwds)
File "C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\pygame\buildconfig\config_win.py", line 576, in main
and download_win_prebuilt.ask(**download_kwargs):
File "C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\pygame\buildconfig\download_win_prebuilt.py", line 302, in ask
reply = raw_input(
EOFError: EOF when reading a line
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```
>To install wxpython enter command : pip install -U wxPython
This one gave me an error as well:
```Running setup.py install for wxPython ... error
ERROR: Command errored out with exit status 1:
command: 'e:\prg\inkscape\bin\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-i_c51shd\\wxPython\\setup.py'"'"'; __file__='"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-i_c51shd\\wxPython\\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\irbis\AppData\Local\Temp\pip-record-i_otwe8t\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\prg\inkscape\include\python3.8\wxPython'
cwd: C:\Users\irbis\AppData\Local\Temp\pip-install-i_c51shd\wxPython\
Complete output (25 lines):
running install
running build
Will build using: "E:\prg\inkscape\bin\python.exe"
3.8.2 (default, Apr 9 2020, 13:17:39) [GCC 9.3.0 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.1.0
Running command: build
Running command: build_wx
Command '"E:\prg\inkscape\bin\python.exe" -c "import setuptools, distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "E:\prg\inkscape\lib\python3.8\distutils\msvc9compiler.py", line 330, in __init__
raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module
Finished command: build_wx (0.474s)
Finished command: build (0.474s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"e:\prg\inkscape\bin\python.exe" -u build.py build
Command '"e:\prg\inkscape\bin\python.exe" -u build.py build' failed with exit code 1.
----------------------------------------
ERROR: Command errored out with exit status 1: 'e:\prg\inkscape\bin\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-i_c51shd\\wxPython\\setup.py'"'"'; __file__='"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-i_c51shd\\wxPython\\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\irbis\AppData\Local\Temp\pip-record-i_otwe8t\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\prg\inkscape\include\python3.8\wxPython' Check the logs for full command output.```
It looks like you are trying to install wxPython to the Python that is included with Inkscape. This probably won't work.
Download and install Python 3 from either www.python.org or the Microfot Store. Then try installing wxPython using that Python, NOT the one that came with Inkscape.
I was trying to use TTFQuery module but when i write the command pip3 install TTFQuery it returns the following error.
ERROR: Command errored out with exit status 1:
command: 'c:\users\pranon rahman\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\PRANON~1\\AppData\\Local\\Temp\\pip-install-z2hpgfba\\TTFQuery\\setup.py'"'"'; __file__='"'"'C:\\Users\\PRANON~1\\AppData\\Local\\Temp\\pip-install-z2hpgfba\\TTFQuery\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);
code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\PRANON~1\AppData\Local\Temp\pip-pip-egg-info-2u2rs2sz'
cwd: C:\Users\PRANON~1\AppData\Local\Temp\pip-install-z2hpgfba\TTFQuery\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\PRANON~1\AppData\Local\Temp\pip-install-z2hpgfba\TTFQuery\setup.py", line 11
except ImportError, err:
^
SyntaxError: invalid syntax
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
TTFQuery 1.0.5, last released in 2012. The code is obviously only for Python 2.
There is a beta release 2.0.0b1 from 2018. Try
pip install TTFQuery==2.0.0b1
so im trying to do a pip3 install flask-swagger-ui but im getting the following error:
Defaulting to user installation because normal site-packages is not writeable
Collecting flask-swagger-ui
Using cached flask-swagger-ui-3.25.0.tar.gz (521 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-n64v6bxi/flask-swagger-ui/pip-egg-info
cwd: /tmp/pip-install-n64v6bxi/flask-swagger-ui/
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'setuptools'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
please help