I have a problem with install weka by pip install python-weka-wrapper3. (The solution here did not work with me).
This error appears when I am trying to run the command above:
Command "c:\users\nujou\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Nujou\\AppData\\Local\\Temp\\pip-build-ctvavwi1\\javabridge\\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\Nujou\AppData\Local\Temp\pip-cdmf95_m-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Nujou\AppData\Local\Temp\pip-build-ctvavwi1\javabridge\
EDIT:
the problem was:
"error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": visualstudio.microsoft.com/downloads"
therefore, it is solved by downloading Microsoft Visual C++ Build Tools.
Related
I'm trying to install mmh3 (with some other libs) on Python - other libs are installing OK, but mmh3 rises an error:
ERROR: Complete output from command 'c:\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\evgeniy\\AppData\\Local\\Temp\\pip-install-ppmbqvid\\mmh3\\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\evgeniy\AppData\Local\Temp\pip-record-6no3ekq2\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_ext
building 'mmh3' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command "'c:\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\evgeniy\\AppData\\Local\\Temp\\pip-install-ppmbqvid\\mmh3\\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\evgeniy\AppData\Local\Temp\pip-record-6no3ekq2\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\evgeniy\AppData\Local\Temp\pip-install-ppmbqvid\mmh3\
After i got this error at first, i've installed Microsoft Visual C++ Build Tools 15 (v14 was installed too), checked, whether Python has its environment variables and restarted.
After restart and running pip install -r requirements.txt same error fires again. AND, really weird: the paths cited in the error text don't exist, both of them:
not C:\Users\evgeniy\AppData\Local\Temp\pip-record-6no3ekq2\install-record.txt
not C:\Users\evgeniy\AppData\Local\Temp\pip-install-ppmbqvid\mmh3\
In the folder named TEMP, which obviously exists, are no leftovers of mmh3 install or logs or anything related.
What should i do to get mmh3 installed?
PS:
solution under https://www.scivision.dev/python-windows-visual-c-14-required/ doesn't help
installing Python into default installation directory (AppData/Local/Programs/Python/Python37) doesn't help too
The trick is to install the lib (mmh3 or any other, which makes troubles) from within Visual Studio.
From within means from its own terminal / cmd window, like explained in the step 4 of Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
I found out about pytesseract and OCR with python so I wanted to try it out and for it to work I need to install tesseract-ocr using pip install on windows but it doesn't work and I get an error. I already have pytesseract and tesseract installed but not tesseract-ocr.
I tried downloading tesseract-ocr from pycharm as well but it doesn't work, I also downloaded Leptonica but it didn't fix anything.
So how do I fix this?
Here is the error :
Installing collected packages: tesseract-ocr
Running setup.py install for tesseract-ocr ... error
ERROR: Complete output from command 'C:\Users\PC\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\PC\\AppData\\Local\\Temp\\pip-install-6mlxue4n\\tesseract-ocr\\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\PC\AppData\Local\Temp\pip-record-1s62w6u0\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
file tesseract_ocr.py (for module tesseract_ocr) not found
file tesseract_ocr.py (for module tesseract_ocr) not found
running build_ext
building 'tesseract_ocr' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command "'C:\Users\PC\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\PC\\AppData\\Local\\Temp\\pip-install-6mlxue4n\\tesseract-ocr\\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\PC\AppData\Local\Temp\pip-record-1s62w6u0\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\PC\AppData\Local\Temp\pip-install-6mlxue4n\tesseract-ocr\
download the ms visual installer. once downloaded, navigate to individual components then select 'Windows 10/11 SDK (based on your version of windows)', 'C++ 2022 redistributable update', and 'C++/CLI support for v143 build tools (latest)'. then click modify on the bottom right corner.
When I try to install PyAudio in CMD with py -m pip install PyAudio I get this:
Collecting PyAudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: PyAudio
Running setup.py install for PyAudio ... error
Complete output from command C:\Users\jiney\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\jiney\\AppData\\Local\\Temp\\pip-install-h8j63lfi\\PyAudio\\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\jiney\AppData\Local\Temp\pip-record-eik80aaq\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
copying src\pyaudio.py -> build\lib.win32-3.7
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command "C:\Users\jiney\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\jiney\\AppData\\Local\\Temp\\pip-install-h8j63lfi\\PyAudio\\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\jiney\AppData\Local\Temp\pip-record-eik80aaq\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\jiney\AppData\Local\Temp\pip-install-h8j63lfi\PyAudio\
I am extremely confused here and I really don't know what to do, when I use the same method using py -m install (package) it works but just not with PyAudio.
Any replies are appreciated, thanks!
It appears you need to install Microsoft Visual C++ as per this line in the error message:
Microsoft Visual C++ 14.0 is required.
Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
I want to use pyCUDA on Microsoft azure. I tried installing it on Google Colab but it is not getting installed. I looked on to the pyCUDA documentation but couldn't find any discussion on it.
Do anyone has any information regarding same?
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-PUtIQA/pycuda/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-uDKIjk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-PUtIQA/pycuda/
Command "C:\Users\asus\Anaconda2\python.exe -u -c "import setuptools, tokenize;file='c:\users\asus\appdata\local\temp\pip-build-54ytkq\peewee\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\asus\appd
ata\local\temp\pip-q5dadg-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\asus\appdata\local\temp\pip-
build-54ytkq\peewee\
It solved actually because microsoft visual c++ for python needs to be installed in my computer
after inatlling that it worked properly