So I am trying to pip install Pyrebase in pycharm
but i am getting this error
command: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\
Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdis
t_wheel -d 'C:\Users\hp\AppData\Local\Temp\pip-wheel-2tffvi57'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-tcpoer0q\pycryptodome\
Complete output (364 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.8\Crypto
creating build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.8\Crypto\Cipher
----------------------------------------
ERROR: Failed building wheel for pycryptodome
Running setup.py clean for pycryptodome
Failed to build pycryptodome
Installing collected packages: pycryptodome, Pyrebase
Running setup.py install for pycryptodome ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData
\\Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"
';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' in
stall --record 'C:\Users\hp\AppData\Local\Temp\pip-record-dxesdn53\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\hp\p
ycharmprojects\myworkprojects\venv\include\site\python3.8\pycryptodome'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-tcpoer0q\pycryptodome\
Complete output (363 lines):
running install
running build
running build_py
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.8\Crypto
creating build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC4.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win-amd64-3.8\Crypto\Cipher
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv
[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-tcpoer0q\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-tcp
oer0q\\pycryptodome\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(cod
e, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\hp\AppData\Local\Temp\pip-record-dxesdn53\install-record.txt' --single-version-externally-managed --compile
--install-headers 'c:\users\hp\pycharmprojects\myworkprojects\venv\include\site\python3.8\pycryptodome' Check the logs for full command output.
(venv) C:\Users\hp\PycharmProjects\MyWorkProjects>pip install Pyrebase
Collecting Pyrebase
Using cached Pyrebase-3.0.27-py3-none-any.whl (9.6 kB)
Requirement already satisfied: requests-toolbelt==0.7.0 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (0.7.0)
Requirement already satisfied: gcloud==0.17.0 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (0.17.0)
Collecting pycryptodome==3.4.3
Using cached pycryptodome-3.4.3.tar.gz (6.5 MB)
Requirement already satisfied: requests==2.11.1 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (2.11.1)
Requirement already satisfied: oauth2client==3.0.0 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (3.0.0)
Requirement already satisfied: python-jwt==2.0.1 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from Pyrebase) (2.0.1)
Requirement already satisfied: httplib2>=0.9.1 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from gcloud==0.17.0->Pyrebase) (0.18.1)
Requirement already satisfied: googleapis-common-protos in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from gcloud==0.17.0->Pyrebase) (1.52.0)
Requirement already satisfied: protobuf!=3.0.0.b2.post1,>=3.0.0b2 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from gcloud==0.17.0->Pyrebase
) (3.13.0)
Requirement already satisfied: six in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from gcloud==0.17.0->Pyrebase) (1.15.0)
Requirement already satisfied: pyasn1>=0.1.7 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from oauth2client==3.0.0->Pyrebase) (0.4.8)
Requirement already satisfied: pyasn1-modules>=0.0.5 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from oauth2client==3.0.0->Pyrebase) (0.2.8
)
Requirement already satisfied: rsa>=3.1.4 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from oauth2client==3.0.0->Pyrebase) (4.6)
Requirement already satisfied: jws>=0.1.3 in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from python-jwt==2.0.1->Pyrebase) (0.1.3)
Requirement already satisfied: setuptools in c:\users\hp\pycharmprojects\myworkprojects\venv\lib\site-packages (from protobuf!=3.0.0.b2.post1,>=3.0.0b2->gcloud==0.17
.0->Pyrebase) (50.3.0)
Building wheels for collected packages: pycryptodome
Building wheel for pycryptodome (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\
Local\\Temp\\pip-install-h4tye5vg\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-h4tye5vg\\pycryptodome\\setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdis
t_wheel -d 'C:\Users\hp\AppData\Local\Temp\pip-wheel-n2zgp_ai'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-h4tye5vg\pycryptodome\
Complete output (364 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.8\Crypto
creating build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-3.8\Crypto\Cipher
ERROR: Command errored out with exit status 1: 'c:\users\hp\pycharmprojects\myworkprojects\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv
[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-h4tye5vg\\pycryptodome\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-h4t
ye5vg\\pycryptodome\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(cod
e, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\hp\AppData\Local\Temp\pip-record-_4my5q46\install-record.txt' --single-version-externally-managed --compile
--install-headers 'c:\users\hp\pycharmprojects\myworkprojects\venv\include\site\python3.8\pycryptodome' Check the logs for full command output.
this is not the full error
it exceeds the limit
i dont know how to fix this
please switch pyrebase4, this is forked from pyrebase and is well maintained
pip install pyrebase4
Related
This question already has answers here:
Can't install Matplotlib on Python 3.10 after its release (2021-10-05)
(2 answers)
Closed 1 year ago.
i have a problem with installing matplotlib on my windows 10 machine
PS C:\Users\moham> pip install matplotlib
Collecting matplotlib
Using cached matplotlib-3.4.3.tar.gz (37.9 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: cycler>=0.10 in c:\users\moham\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (0.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\moham\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (1.3.2)
Requirement already satisfied: numpy>=1.16 in c:\users\moham\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (1.21.3)
Requirement already satisfied: pillow>=6.2.0 in c:\users\moham\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (8.4.0)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\moham\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (3.0.3)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\moham\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (2.8.2)
Requirement already satisfied: six>=1.5 in c:\users\moham\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0)
Building wheels for collected packages: matplotlib
Building wheel for matplotlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\moham\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\moham\\AppData\\Local\\Temp\\pip-install-flrd8ddj\\matplotlib_7091154205ba4de6adb6e99636c201f9\\setup.py'"'"'; __file__='"'"'C:\\Users\\moham\\AppData\\Local\\Temp\\pip-install-flrd8ddj\\matplotlib_7091154205ba4de6adb6e99636c201f9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\moham\AppData\Local\Temp\pip-wheel-hj9g1qjt'
cwd: C:\Users\moham\AppData\Local\Temp\pip-install-flrd8ddj\matplotlib_7091154205ba4de6adb6e99636c201f9\
Complete output (553 lines):
Edit setup.cfg to change the build options; suppress output with --quiet.
BUILDING MATPLOTLIB
matplotlib: yes [3.4.3]
python: yes [3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC
v.1929 64 bit (AMD64)]]
platform: yes [win32]
tests: no [skipping due to configuration]
macosx: no [Mac OS-X only]
C:\Users\moham\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py:148: SetuptoolsDeprecationWarning: setup_requires is deprecated. Supply build dependencies using PEP 517 pyproject.toml build-requires.
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying lib\pylab.py -> build\lib.win-amd64-3.10
alot more lines from here
but somewhere in the middle it gets to this:
----------------------------------------
ERROR: Failed building wheel for matplotlib
Running setup.py clean for matplotlib
Failed to build matplotlib
Installing collected packages: matplotlib
Running setup.py install for matplotlib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\moham\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\moham\\AppData\\Local\\Temp\\pip-install-flrd8ddj\\matplotlib_7091154205ba4de6adb6e99636c201f9\\setup.py'"'"'; __file__='"'"'C:\\Users\\moham\\AppData\\Local\\Temp\\pip-install-flrd8ddj\\matplotlib_7091154205ba4de6adb6e99636c201f9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\moham\AppData\Local\Temp\pip-record-wj_x0r_i\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\moham\AppData\Local\Programs\Python\Python310\Include\matplotlib'
cwd: C:\Users\moham\AppData\Local\Temp\pip-install-flrd8ddj\matplotlib_7091154205ba4de6adb6e99636c201f9\
Complete output (553 lines):
Edit setup.cfg to change the build options; suppress output with --quiet.
BUILDING MATPLOTLIB
matplotlib: yes [3.4.3]
python: yes [3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC
v.1929 64 bit (AMD64)]]
platform: yes [win32]
tests: no [skipping due to configuration]
macosx: no [Mac OS-X only]
C:\Users\moham\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py:148: SetuptoolsDeprecationWarning: setup_requires is deprecated. Supply build dependencies using PEP 517 pyproject.toml build-requires.
warnings.warn(
running install
C:\Users\moham\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build\lib.win-amd64-3.10
copying lib\pylab.py -> build\lib.win-amd64-3.10
and alot more lines
and ends with this:
copying lib\matplotlib\mpl-data\images\zoom_to_rect_large.png -> build\lib.win-amd64-3.10\matplotlib\mpl-data\images copying lib\matplotlib\mpl-data\fonts\ttf\DejaVuSansDisplay.ttf -> build\lib.win-amd64-3.10\matplotlib\mpl-data\fonts\ttf
copying lib\matplotlib\mpl-data\fonts\afm\pagdo8a.afm -> build\lib.win-amd64-3.10\matplotlib\mpl-data\fonts\afm
copying lib\matplotlib\mpl-data\images\matplotlib.pdf -> build\lib.win-amd64-3.10\matplotlib\mpl-data\images
copying lib\matplotlib\backends\web_backend\css\page.css -> build\lib.win-amd64-3.10\matplotlib\backends\web_backend\css
copying lib\matplotlib\mpl-data\fonts\ttf\STIXSizFourSymBol.ttf -> build\lib.win-amd64-3.10\matplotlib\mpl-data\fonts\ttf
UPDATING build\lib.win-amd64-3.10\matplotlib\_version.py
set build\lib.win-amd64-3.10\matplotlib\_version.py to '3.4.3'
running build_ext
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Building freetype in build\freetype-2.6.1
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\moham\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\moham\\AppData\\Local\\Temp\\pip-install-flrd8ddj\\matplotlib_7091154205ba4de6adb6e99636c201f9\\setup.py'"'"'; __file__='"'"'C:\\Users\\moham\\AppData\\Local\\Temp\\pip-install-flrd8ddj\\matplotlib_7091154205ba4de6adb6e99636c201f9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\moham\AppData\Local\Temp\pip-record-wj_x0r_i\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\moham\AppData\Local\Programs\Python\Python310\Include\matplotlib' Check the logs for full command output.
PS C:\Users\moham>
..................................................................................................................................................................................................................................................................................................................................................................................
The latest stable version is 3.4.3. On PyPI there is no matplotlib wheel for 3.10, yet. So it try to compile from source. And for that it needs Microsoft Visual C++ 14.0 or greater.
However you can download unofficial binary from Gohlke
Alternatively you can use pipwin to install it from Gohlke. Note there may still be problems with dependencies.
Of course, you can also downgrade to python3.9.
This is the error that I'm getting whenever I try to install a certain few libraries. I have tried updating my pip to the latest version. And I'm using python 3.8.5
C:\Users\Deep\Desktop\Sentiment Analysis>pip install lightfm
Collecting lightfm
Using cached lightfm-1.16.tar.gz (310 kB)
Requirement already satisfied: numpy in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from lightfm) (1.20.1)
Requirement already satisfied: scipy>=0.17.0 in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from lightfm) (1.6.1)
Requirement already satisfied: requests in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from lightfm) (2.11.1)
Requirement already satisfied: scikit-learn in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from lightfm) (0.24.1)
Requirement already satisfied: joblib>=0.11 in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->lightfm) (1.0.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\deep\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->lightfm) (2.1.0)
Using legacy 'setup.py install' for lightfm, since package 'wheel' is not installed.
Installing collected packages: lightfm
Running setup.py install for lightfm ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\deep\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Deep\\AppData\\Local\\Temp\\pip-install-2woi0con\\lightfm_42fc377b52074fbd9b3c493179e0e9fd\\setup.py'"'"'; __file__='"'"'C:\\Users\\Deep\\AppData\\Local\\Temp\\pip-install-2woi0con\\lightfm_42fc377b52074fbd9b3c493179e0e9fd\\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\Deep\AppData\Local\Temp\pip-record-2y1qyoq6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\deep\appdata\local\programs\python\python39\Include\lightfm'
cwd: C:\Users\Deep\AppData\Local\Temp\pip-install-2woi0con\lightfm_42fc377b52074fbd9b3c493179e0e9fd\
Complete output (23 lines):
Compiling without OpenMP support.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\lightfm
copying lightfm\cross_validation.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\data.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\evaluation.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\lightfm.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\_lightfm_fast.py -> build\lib.win-amd64-3.9\lightfm
copying lightfm\__init__.py -> build\lib.win-amd64-3.9\lightfm
creating build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\datasets\movielens.py -> build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\datasets\stackexchange.py -> build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\datasets\_common.py -> build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\datasets\__init__.py -> build\lib.win-amd64-3.9\lightfm\datasets
copying lightfm\_lightfm_fast_no_openmp.c -> build\lib.win-amd64-3.9\lightfm
copying lightfm\_lightfm_fast_openmp.c -> build\lib.win-amd64-3.9\lightfm
running build_ext
building 'lightfm._lightfm_fast_no_openmp' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\deep\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Deep\\AppData\\Local\\Temp\\pip-install-2woi0con\\lightfm_42fc377b52074fbd9b3c493179e0e9fd\\setup.py'"'"'; __file__='"'"'C:\\Users\\Deep\\AppData\\Local\\Temp\\pip-install-2woi0con\\lightfm_42fc377b52074fbd9b3c493179e0e9fd\\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\Deep\AppData\Local\Temp\pip-record-2y1qyoq6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\deep\appdata\local\programs\python\python39\Include\lightfm' Check the logs for full command output.
try to install Build Tools for Visual Studio like it says in error and you can get it here https://visualstudio.microsoft.com/downloads/ or here https://visualstudio.microsoft.com/cs/visual-cpp-build-tools/
I am trying using FFTW3 in python and when I try to install it I got this:
xxxxxxx#iMac ~ % pip3 install pyfftw3
Collecting pyfftw3
Using cached PyFFTW3-0.2.1.tar.gz (25 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/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/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-pip-egg-info-m06gikf1
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-m021xxq5/pyfftw3_69a9370f7f41441eaca6ae508a6a1544/setup.py", line 81
print "build %s from template %s" %(outfile, tmplfile)
^
SyntaxError: invalid syntax
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/58/07/e070b9a44429bbd5481f9f0b2d1b35d896fbfd180051e05c840186a31c8a/PyFFTW3-0.2.1.tar.gz#sha256=8941a023e6e4f501e7cec92382c3d3f76f47c7583e9eade738840dd9e4e467c4 (from https://pypi.org/simple/pyfftw3/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pyfftw3
ERROR: No matching distribution found for pyfftw3
I have the newest version of python installed by Homebrew.
Pip is also the newest version.
I have tried pip install -U setuptools
Inspired by 'Swetank Poddar': I found the pyfftw3 is a python2 library, so I tried pip3 install pyfftw. But, I got a new question:
Collecting pyfftw
Downloading pyFFTW-0.12.0.tar.gz (137 kB)
|████████████████████████████████| 137 kB 167 kB/s
Requirement already satisfied: numpy<2.0,>=1.10 in /usr/local/lib/python3.9/site-packages (from pyfftw) (1.19.5)
Building wheels for collected packages: pyfftw
Building wheel for pyfftw (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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 /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-wheel-e51wsh5k
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/
Complete output (25 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.9
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/config.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/_version.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
copying pyfftw/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/builders.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
copying pyfftw/builders/_utils.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/builders
creating build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/cache.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/__init__.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/scipy_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/dask_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/numpy_fft.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/scipy_fftpack.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
copying pyfftw/interfaces/_utils.py -> build/lib.macosx-10.15-x86_64-3.9/pyfftw/interfaces
UPDATING build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py
set build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find any of the FFTW libraries
----------------------------------------
ERROR: Failed building wheel for pyfftw
Running setup.py clean for pyfftw
Failed to build pyfftw
Installing collected packages: pyfftw
Running setup.py install for pyfftw ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-record-ljyxfo00/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/python#3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyfftw
cwd: /private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/
Complete output (7 lines):
running install
running build
running build_py
UPDATING build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py
set build/lib.macosx-10.15-x86_64-3.9/pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find any of the FFTW libraries
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python#3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/setup.py'"'"'; __file__='"'"'/private/var/folders/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-install-p3twpksg/pyfftw_a5a93b1d21cd45bb90489634e47c82a5/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/xc/vzy2gb2j2hs8tyv7j70d979h0000gn/T/pip-record-ljyxfo00/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/python#3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyfftw Check the logs for full command output.
It looks like the problem is mainly about the "Building wheel for pyfftw".
Alternatively you could install pyFFTW: pip install pyFFTW
Install instructions for Mac OS:
Install FFTW from homebrew:
brew install fftw
Set temporary environmental variables, such that pyfftw finds fftw:
export DYLD_LIBRARY_PATH=/usr/local/lib export LDFLAGS="-L/usr/local/lib"
export CFLAGS="-I/usr/local/include"
Now install pyfftw from pip:
pip install pyfftw
It has been suggested that macports might also work fine. You should then replace the LD environmental variables above with the right ones.
DYLD - path for libfftw3.dylib etc - find /usr -name libfftw3.dylib
LDFLAGS - path for fftw3.h - find /usr -name fftw3.h
check the python version once ,by typing python --version and if it is the latest version of python go to the code that you are typing and check the print statement as it is showing error in command prompt as you mentioned...in latest version of python you have to use parenthesis after print("you have to use parenthesis")
Refer to https://github.com/pyFFTW/pyFFTW/issues/303
Run brew install fftw
Install the lib with LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include -Wno-error=implicit-function-declaration" python setup.py install
This is the error I am getting when trying to install nltk.
Collecting nltk
Using cached nltk-3.5.zip (1.4 MB)
Requirement already satisfied: click in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from nltk) (7.1.2)
Requirement already satisfied: joblib in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from nltk) (0.16.0)
Collecting regex
Using cached regex-2020.7.14.tar.gz (690 kB)
Collecting tqdm
Using cached tqdm-4.49.0-py2.py3-none-any.whl (69 kB)
Using legacy 'setup.py install' for nltk, since package 'wheel' is not installed.
Using legacy 'setup.py install' for regex, since package 'wheel' is not installed.
Installing collected packages: regex, tqdm, nltk
Running setup.py install for regex ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-izrsarsv/regex/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-izrsarsv/regex/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-cqr8q0er/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/regex
cwd: /private/tmp/pip-install-izrsarsv/regex/
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/regex
copying regex_3/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/regex
copying regex_3/regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex
copying regex_3/_regex_core.py -> build/lib.macosx-10.9-x86_64-3.8/regex
copying regex_3/test_regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex
running build_ext
building 'regex._regex' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/regex_3
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c regex_3/_regex.c -o build/temp.macosx-10.9-x86_64-3.8/regex_3/_regex.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-izrsarsv/regex/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-izrsarsv/regex/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-cqr8q0er/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/regex Check the logs for full command output.
My python & pip are up to date. Does anyone know how to successfully install this package?
I am new to python notebook and python. I'm currently taking python for data science on LinkedIn learning, and I'm running into problem below and couldn't find the solution.
''''! pip3 install plotly''''
Collecting plotly
Using cached https://files.pythonhosted.org/packages/15/90/918bccb0ca60dc6d126d921e2c67126d75949f5da777e6b18c51fb12603d/plotly-4.6.0-py2.py3-none-any.whl
Requirement already satisfied: six in ./Library/Python/3.8/lib/python/site-packages (from plotly) (1.14.0)
Collecting retrying>=1.3.3 (from plotly)
Using cached https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Installing collected packages: retrying, plotly
Running setup.py install for retrying ... 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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build/lib
copying retrying.py -> build/lib
running install_lib
copying build/lib/retrying.py -> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
error: could not create '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/retrying.py': Permission denied
----------------------------------------
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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/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/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Try:
pip install plotly==4.6.0 --user
https://plotly.com/python/getting-started/