When i install scrapy in Python 3.8.2 in MacOS, Display:
Requirement already satisfied: six in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages (from Automat>=0.3.0->Twisted) (1.15.0)
Requirement already satisfied: idna>=2.5 in /Library/Python/3.8/site-packages (from hyperlink>=17.1.1->Twisted) (2.10)
Building wheels for collected packages: Twisted
Building wheel for Twisted (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/1w/wtkkznhd5x1f3kgx_x7yjh7r0000gn/T/pip-install-dh7kc0fc/Twisted/setup.py'"'"'; __file__='"'"'/private/var/folders/1w/wtkkznhd5x1f3kgx_x7yjh7r0000gn/T/pip-install-dh7kc0fc/Twisted/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/1w/wtkkznhd5x1f3kgx_x7yjh7r0000gn/T/pip-wheel-de42wco6 --python-tag cp38
use command: brew install python3. update python 3.83 to python 3.85. then restart macos. use command: pip3 install scrapy. it is OK.
Related
I am facing this(failed to install face_recognition, pillow, dilib) problems more than 3 hours but it can not install. please solve anyone . here is error massage
Collecting face-recognition==1.3.0
Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: numpy in c:\users\ajay kumar\downloads\attendance\venv\lib\site-packages (from face-recognition==1.3.0) (1.23.5)
Requirement already satisfied: face-recognition-models>=0.3.0 in c:\users\ajay kumar\downloads\attendance\venv\lib\site-packages (from face-recognition==1.3.0) (0.3.0)
Collecting dlib>=19.7
Using cached dlib-19.24.0.tar.gz (3.2 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: Click>=6.0 in c:\users\ajay kumar\downloads\attendance\venv\lib\site-packages (from face-recognition==1.3.0) (7.1.2)
Requirement already satisfied: Pillow in c:\users\ajay kumar\downloads\attendance\venv\lib\site-packages (from face-recognition==1.3.0) (9.3.0)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py): started
Building wheel for dlib (setup.py): finished with status 'error'
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, face-recognition
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\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\Ajay Kumar\AppData\Local\Temp\pip-wheel-_d9j585t'
cwd: C:\Users\Ajay Kumar\AppData\Local\Temp\pip-install-milseje2\dlib_309f909f3c144f8cb6e2594feb25911f\
Complete output (8 lines):
running bdist_wheel
running build
running build_py
package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
running build_ext
ERROR: CMake must be installed to build dlib
----------------------------------------
ERROR: Failed building wheel for dlib
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\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\Ajay Kumar\AppData\Local\Temp\pip-record-cv4pvl8s\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\include\site\python3.11\dlib'
cwd: C:\Users\Ajay Kumar\AppData\Local\Temp\pip-install-milseje2\dlib_309f909f3c144f8cb6e2594feb25911f\
Complete output (10 lines):
running install
C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\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
package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
running build_ext
ERROR: CMake must be installed to build dlib
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\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\Ajay Kumar\AppData\Local\Temp\pip-record-cv4pvl8s\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\include\site\python3.11\dlib' Check the logs for full command output.
WARNING: You are using pip version 21.3.1; however, version 22.3.1 is available.
You should consider upgrading via the 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Scripts\python.exe -m pip install --upgrade pip' command.
installing face_recognition, pillow, dilib library in python
I think you need to install CMake before build dlib
ERROR: CMake must be installed to build dlib
edit: Official cmake site https://cmake.org/download/
I cannot install the autoitlibrary for robot framework on windows 10, when I try the commands below:
pip install robotframework-autoitlibrary
OR
pip install -U robotframework-autoitlibrary --no-cache-dir --pre
It begins the installation, but then it gives me the error:
C:\WINDOWS\system32>pip install -U robotframework-autoitlibrary --no-cache-dir --pre
Collecting robotframework-autoitlibrary
Downloading robotframework-autoitlibrary-1.2.5.tar.gz (696 kB)
|████████████████████████████████| 696 kB 6.8 MB/s
Requirement already satisfied, skipping upgrade: pywin32 in c:\users\guilherme\appdata\roaming\python\python38\site-packages (from robotframework-autoitlibrary) (227)
Requirement already satisfied, skipping upgrade: pillow in c:\users\guilherme\appdata\local\programs\python\python38\lib\site-packages (from robotframework-autoitlibrary) (7.1.2)
Using legacy setup.py install for robotframework-autoitlibrary, since package wheel is not installed.
Installing collected packages: robotframework-autoitlibrary
Running setup.py install for robotframework-autoitlibrary ... error
ERROR: Command errored out with exit status 2:
command: 'c:\users\guilherme\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\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\Guilherme\AppData\Local\Temp\pip-record-p7h0dafs\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\guilherme\appdata\local\programs\python\python38\Include\robotframework-autoitlibrary'
cwd: C:\Users\Guilherme\AppData\Local\Temp\pip-install-cuz2ut7_\robotframework-autoitlibrary\
Complete output (3 lines):
Don't think we need to unregister the old one...
%SYSTEMROOT%\system32\regsvr32.exe /S c:\users\guilherme\appdata\local\programs\python\python38\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
AutoItLibrary requires win32com. See http://starship.python.net/crew/mhammond/win32/.
**----------------------------------------**
ERROR: Command errored out with exit status 2: 'c:\users\guilherme\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\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\Guilherme\AppData\Local\Temp\pip-record-p7h0dafs\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\guilherme\appdata\local\programs\python\python38\Include\robotframework-autoitlibrary' Check the logs for full command output.
Details:
I've already tried running the prompt as Admin as you can see above, but didn't work too.
My python is the last version: Python 3.8.3 (64bit)
I've already have installed robot framework: Robot Framework 3.2.1 (Python 3.8.3 on win32)
Can someone help me fix this?!
Worked for me when I opened the command window as administrator.
I fixed this problem in my PC using pip install --upgrade robotframework. If this didn't work for you, try unistalling python and installing it again in Windows root filesystem: C:\.
I'm using win10 and trying to install geopandas:
C:\Users\61432>pip install geopandas
Collecting geopandas
Using cached geopandas-0.7.0-py2.py3-none-any.whl (928 kB)
Requirement already satisfied: shapely in c:\users\61432\anaconda3\lib\site-packages (from geopandas) (1.7.0)
Collecting fiona
Using cached Fiona-1.8.13.post1.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\61432\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\61432\\AppData\\Local\\Temp\\pip-install-xgic7o3y\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\61432\\AppData\\Local\\Temp\\pip-install-xgic7o3y\\fiona\\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\61432\AppData\Local\Temp\pip-install-xgic7o3y\fiona\pip-egg-info'
cwd: C:\Users\61432\AppData\Local\Temp\pip-install-xgic7o3y\fiona\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
First Download packages from https://www.lfd.uci.edu/~gohlke/pythonlibs/
(GDAL,FIONA) put in the file_path where you're working the project
Second Install the packages
cd the file_path> pip install GDAL
i.e (data) C:\Users\mourinho\project> pip install GDAL-3.2.1-cp39-cp39-win_amd64.whl
then
pip install Fiona
i.e (data) C:\Users\mourinho\project> pip install Fiona-1.8.18-cp39-cp39-win_amd64.whl
pip install geopandas
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/
I'm trying to install dryscrape python library using pip.
I tried :
pip install dryscrape
But i'm getting error, Traceback :
Collecting dryscrape
Using cached https://files.pythonhosted.org/packages/b5/75/c45f796ec5bc7f98c38b9ae425390ef5f4a76153c8b5af946adb97e7e622/dryscrape-1.0.tar.gz
Collecting webkit_server>=1.0
Using cached https://files.pythonhosted.org/packages/29/f2/f4f454cccde75e95359e91fa58f14497350dc97e58534f9003c77eca3dff/webkit-server-1.0.tar.gz
Requirement already satisfied: lxml in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from dryscrape) (4.4.2)
Requirement already satisfied: xvfbwrapper in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from dryscrape) (0.2.9)
Installing collected packages: webkit-server, dryscrape
Running setup.py install for webkit-server ... 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/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"'; __file__='"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/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/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-record-gmf2apev/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/
Complete output (4 lines):
running install
running build
sh: qmake: command not found
error: [Errno 2] No such file or directory: 'src/webkit_server'
----------------------------------------
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/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"'; __file__='"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/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/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-record-gmf2apev/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
I was able to replicate the issue, so I tried googling the following:
Dryscrape no such file or directory found src/webkit_server
and the first result is This StackOverflow Question. I followed the instructions there are it solved the issue.