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.
Related
I am on Ubuntu and I tried to install djangorestframework-gis-distance
I followed the instructions and installed the dependencies which installed fine.
But when I install djangorestframework-gis-distance it gives an error of
ERROR: Command errored out with exit status 1:
command: /home/aarush/git_fudo/food1_back/food1_back/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/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 pip-egg-info
cwd: /tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py", line 9, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Which basically says I think that there is no file called pip.req.
Is there another way I can install djangorestframework-gis-distance?
Lets see: https://pypi.org/project/djangorestframework-gis-distance/ . Latest version 1.0.0 released Feb 7, 2016.
Requires Python 2.7 but not 3+. Django 1.7+ but most probably not Django 2+. The error message indicates setup.py uses forbidden API pip.req which was only available in pip < 19 (IIRC).
The bottom line: the package is abandoned and outdated. Forget about it.
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.
I am using Windows 10 and run Jupyter Notebook on Anaconda. At first I wanted to install Turi Create on Anaconda but failed to do so. Then I started installing Turi Create through WSL using Ubuntu. But after running the command $pip install turicreate I am getting the following error:
ERROR: Failed building wheel for llvmlite
My python version is 3.6.9
The full error traceback is given below
ERROR: Command errored out with exit status 1: command:
/home/rishad/venv/bin/python -u -c 'import sys, setuptools, tokenize;
sys.argv[0] = '"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';
file='"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-VYksx0
cwd: /tmp/pip-install-D6ZY7E/llvmlite/ Complete output (15 lines): running bdist_wheel /home/rishad/venv/bin/python
/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py LLVM version... 6.0.0
Traceback (most recent call last):
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 168, in
main()
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 158, in main
main_posix('linux', '.so')
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 120, in main_posix
raise RuntimeError(msg) RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got u'6.0.0'. Be sure to set
LLVM_CONFIG to the right executable path. Read the documentation at
http://llvmlite.pydata.org/ for more information about building
llvmlite.
error: command '/home/rishad/venv/bin/python' failed with exit
status 1 ---------------------------------------- ERROR: Failed
building wheel for llvmlite
And then the next error
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: /home/rishad/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';
file='"'"'/tmp/pip-install-D6ZY7E/llvmlite/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-Tv5u1Z/install-record.txt
--single-version-externally-managed --compile --install-headers /home/rishad/venv/include/site/python2.7/llvmlite
cwd: /tmp/pip-install-D6ZY7E/llvmlite/
Complete output (18 lines):
running install
running build
got version from file /tmp/pip-install-D6ZY7E/llvmlite/llvmlite/_version.py {'version':
'0.32.0', 'full': '26059d238f4ba23dff74703dd27168591d889edd'}
running build_ext
/home/rishad/venv/bin/python /tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py
LLVM version... 6.0.0
Traceback (most recent call last):
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 168, in <module>
main()
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 158, in main
main_posix('linux', '.so')
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 120, in main_posix
raise RuntimeError(msg)
RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got u'6.0.0'. Be sure to set LLVM_CONFIG to the right executable path.
Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.
error: command '/home/rishad/venv/bin/python' failed with exit status 1
---------------------------------------- ERROR: Command errored out with exit status 1: /home/rishad/venv/bin/python -u -c 'import
sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';
file='"'"'/tmp/pip-install-D6ZY7E/llvmlite/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-Tv5u1Z/install-record.txt
--single-version-externally-managed --compile --install-headers /home/rishad/venv/include/site/python2.7/llvmlite Check the logs for
full command output.
I am trying to download ssh2-python, but continue to get this error. I saw a previous post said to download cmake to fix this issue, but unfortunately it did not help me. Any recommendations on what to do seeing the error below? Thank you!
pip3 install ssh2-python
Collecting ssh2-python
Using cached ssh2-python-0.18.0.post1.tar.gz (1.1 MB)
Installing collected packages: ssh2-python
Running setup.py install for ssh2-python ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/setup.py'"'"'; __file__='"'"'/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/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/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-record-51uifsty/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/ssh2-python
cwd: /private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/
Complete output (10 lines):
/bin/sh: cmake: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/setup.py", line 36, in <module>
build_ssh2()
File "/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/_setup_libssh2.py", line 21, in build_ssh2
check_call('cmake ../libssh2 -DBUILD_SHARED_LIBS=ON \
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'cmake ../libssh2 -DBUILD_SHARED_LIBS=ON -DENABLE_ZLIB_COMPRESSION=ON -DENABLE_CRYPT_NONE=ON -DENABLE_MAC_NONE=ON -DCRYPTO_BACKEND=OpenSSL' returned non-zero exit status 127.
----------------------------------------
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/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/setup.py'"'"'; __file__='"'"'/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/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/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-record-51uifsty/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/ssh2-python Check the logs for full command output.
You need cmake to compile the lib. If you have homebrew installed, use the following command to install the cmake. Then open a new terminal and try to install the ssh2-python.
brew install cmake
I'm installing package python-weka-wrapper. But i have a problem with that about Java Development Kit.
This is for python 3.7.4 on windows 10.
C:\Users\dell>pip install python-weka-wrapper3
Collecting python-weka-wrapper3
Using cached https://files.pythonhosted.org/packages/48/3a/0f345b19774b5b6c53e9456c2985d79ff09b610bbf29d95403004734a45b/python-weka-wrapper3-0.1.7.tar.gz
Collecting javabridge>=1.0.14
Using cached https://files.pythonhosted.org/packages/a6/a0/c59bccabed99b1d4ac68166c59c679b375bfca75b78688b52c541b711578/javabridge-1.0.18.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\dell\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-4r0otofz\\javabridge\\setup.py'"'"'; __file__='"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-4r0otofz\\javabridge\\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\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\pip-egg-info'
cwd: C:\Users\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\setup.py", line 402, in <module>
ext_modules=ext_modules(),
File "C:\Users\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\setup.py", line 96, in ext_modules
jdk_home = find_jdk()
File "C:\Users\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\javabridge\locate.py", line 203, in find_jdk
"Failed to find the Java Development Kit. "
RuntimeError: Failed to find the Java Development Kit. Please download and install the Oracle JDK 1.6 or later
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Althought I've installed JDK1.8.0_231
So how to fix the error? Thank you!
You have checked and found the Java runtime Environment (JRE), not the Java development Kit, which is a seperate installation.
You can find it on the oracle website. Download and install and then your problem should be solved