I have tried to install MeshPy in Colab using !pip install MeshPy but I got the following output and the package has not been installed. I would appreciate any suggestion.
Here is the complete output
Collecting MeshPy
Downloading
https://files.pythonhosted.org/packages/90/03/3bb205ac46141074aeb561f5bbf60fb2214380aa6ac1435b49d275cf219a/MeshPy-2018.2.1.tar.gz (472kB)
100% |████████████████████████████████| 481kB 25.8MB/s
Collecting pytools>=2011.2 (from MeshPy)
Downloading
https://files.pythonhosted.org/packages/ac/a3/f54f7190315ad41b7334d8733350e7fcefded8f25e0b45e2329b80279921/pytools-2019.1.tar.gz (57kB)
100% |████████████████████████████████| 61kB 22.3MB/s
Requirement already satisfied: pytest>=2 in /usr/local/lib/python3.6/dist-packages (from MeshPy) (3.10.1)
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from MeshPy) (1.14.6)
Collecting gmsh_interop (from MeshPy)
Downloading
https://files.pythonhosted.org/packages/a5/8c/62c40850d8e8a2c9c3d223c9b9456ed4431f02b0c45e16cc90bf0025fffe/gmsh_interop-2019.1.tar.gz
Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from MeshPy) (1.11.0)
Requirement already satisfied: decorator>=3.2.0 in /usr/local/lib/python3.6/dist-packages (from pytools>=2011.2->MeshPy) (4.3.2)
Collecting appdirs>=1.4.0 (from pytools>=2011.2->MeshPy)
Downloading
https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Requirement already satisfied: atomicwrites>=1.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (1.3.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (40.8.0)
Requirement already satisfied: py>=1.5.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (1.8.0)
Requirement already satisfied: pluggy>=0.7 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (0.9.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (18.2.0)
Requirement already satisfied: more-itertools>=4.0.0 in /usr/local/lib/python3.6/dist-packages (from pytest>=2->MeshPy) (6.0.0)
Building wheels for collected packages: MeshPy, pytools, gmsh-interop
Building wheel for MeshPy (setup.py) ... error
Failed building wheel for MeshPy
Running setup.py clean for MeshPy
Building wheel for pytools (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/1b/f4/26/46b6cf949b3cccefcc41e6b526f7c16351a4a5c124fc6f6eaa
Building wheel for gmsh-interop (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/be/19/0b/76011e06f64c41e0dcfed58e171c091c31f2b499a981d8d773
Successfully built pytools gmsh-interop
Failed to build MeshPy
Installing collected packages: appdirs, pytools, gmsh-interop, MeshPy
Running setup.py install for MeshPy ... error
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-matqpp2p/MeshPy/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-8_339liz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-matqpp2p/MeshPy/
Not enough information in your error. To see the exact cause we need longer traceback.
Let's me guess. I tried to install MeshPy myself with pip install MeshPy and got an error about absent of pybind11. So I ran
pip install pybind11
pip install MeshPy
and MeshPy was successfully installed.
Related
I realize there are a lot of variations of these error questions out there, from my search nothing seemed to help.
I have recently pip installed some packages using my cmd prompt on windows. For instance pip installed Flask and had no issues. However I recently tried to pip install cs50 and Flask-SQLAlchemy and have gotten the same error with regards to greenlet.
My question is two fold. What does greenlet have to do with installing these packages. And secondly how can I fix this error so that I can pip install these packages?
Collecting Flask-SQLAlchemy
Using cached Flask_SQLAlchemy-2.5.1-py2.py3-none-any.whl (17 kB)
Collecting SQLAlchemy>=0.8.0
Using cached SQLAlchemy-1.4.29.tar.gz (8.0 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: Flask>=0.10 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask-SQLAlchemy) (2.0.2)
Requirement already satisfied: itsdangerous>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (2.0.1)
Requirement already satisfied: Jinja2>=3.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (3.0.3)
Requirement already satisfied: click>=7.1.2 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (8.0.3)
Requirement already satisfied: Werkzeug>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (2.0.2)
Collecting greenlet!=0.4.17
Using cached greenlet-1.1.2.tar.gz (91 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: colorama in c:\msys64\mingw64\lib\python3.9\site-packages (from click>=7.1.2->Flask>=0.10->Flask-SQLAlchemy) (0.4.4)
Requirement already satisfied: MarkupSafe>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Jinja2>=3.0->Flask>=0.10->Flask-SQLAlchemy) (2.0.1)
Building wheels for collected packages: SQLAlchemy, greenlet
Building wheel for SQLAlchemy (setup.py) ... done
Created wheel for SQLAlchemy: filename=SQLAlchemy-1.4.29-cp39-cp39-win_amd64.whl size=1512539 sha256=25d3a12bbff4ff0c365154c700de44d089427650aea9b98e228c6077852eab61
Stored in directory: c:\users\t\appdata\local\pip\cache\wheels\6d\94\a6\8bdac6f92ce851f71a9fa62934a06cf2b654700b5f258242c7
Building wheel for greenlet (setup.py) ... error
ERROR: Command errored out with exit status 1:
After this error I get a bunch more lines but some that stand out are
ERROR: Failed building wheel for greenlet
Running setup.py clean for greenlet
Successfully built SQLAlchemy
Failed to build greenlet
Installing collected packages: greenlet, SQLAlchemy, Flask-SQLAlchemy
Running setup.py install for greenlet ... error
ERROR: Command errored out with exit status 1:
And
fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1:
pip install dtwalign
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Collecting dtwalign
Collecting numba>=0.34.0 (from dtwalign)
Requirement already satisfied: scipy in c:\anaconda3\lib\site-packages (from dtwalign) (0.16.0)
Requirement already satisfied: seaborn>=0.8.1 in c:\anaconda3\lib\site-packages (from dtwalign) (0.9.1)
Requirement already satisfied: numpy in c:\anaconda3\lib\site-packages (from dtwalign) (1.16.6)
Requirement already satisfied: networkx in c:\anaconda3\lib\site-packages (from dtwalign) (1.9.1)
Requirement already satisfied: matplotlib in c:\anaconda3\lib\site-packages (from dtwalign) (1.4.3)
Requirement already satisfied: enum34 in c:\anaconda3\lib\site-packages (from numba>=0.34.0->dtwalign) (1.1.10)
Requirement already satisfied: setuptools in c:\anaconda3\lib\site-packages\setuptools-27.2.0-py3.4.egg (from numba>=0.34.0->dtwalign) (27.2.0)
Collecting llvmlite>=0.31.0dev0 (from numba>=0.34.0->dtwalign)
Using cached https://files.pythonhosted.org/packages/50/cc/04526507e80d546be5688ce0246e40277b61e7949c3347c6609b6a4154cf/llvmlite-0.32.1.tar.gz
Requirement already satisfied: singledispatch in c:\anaconda3\lib\site-packages (from numba>=0.34.0->dtwalign) (3.6.2)
Requirement already satisfied: funcsigs in c:\anaconda3\lib\site-packages (from numba>=0.34.0->dtwalign) (1.0.2)
Requirement already satisfied: pandas>=0.17.1 in c:\anaconda3\lib\site-packages (from seaborn>=0.8.1->dtwalign) (0.18.1)
Requirement already satisfied: six in c:\anaconda3\lib\site-packages (from singledispatch->numba>=0.34.0->dtwalign) (1.10.0)
Requirement already satisfied: python-dateutil>=2 in c:\anaconda3\lib\site-packages (from pandas>=0.17.1->seaborn>=0.8.1->dtwalign) (2.4.2)
Requirement already satisfied: pytz>=2011k in c:\anaconda3\lib\site-packages (from pandas>=0.17.1->seaborn>=0.8.1->dtwalign) (2015.4)
Building wheels for collected packages: llvmlite
Building wheel for llvmlite (setup.py) ... error
ERROR: Complete output from command 'c:\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\\\AppData\\Local\\Temp\\pip-install-ufd5rb5f\\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 'C:\Users\\AppData\Local\Temp\pip-wheel-11jhoxwj' --python-tag cp34:
ERROR: running bdist_wheel
c:\anaconda3\python.exe C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py
Trying generator 'Visual Studio 14 2015 Win64'
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 192, in <module>
main()
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 180, in main
main_win32()
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 89, in main_win32
generator = find_win32_generator()
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 77, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File "C:\Users\\AppData\Local\Temp\pip-install-ufd5rb5f\llvmlite\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "c:\anaconda3\lib\subprocess.py", line 556, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\anaconda3\lib\subprocess.py", line 537, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\anaconda3\lib\subprocess.py", line 859, in __init__
restore_signals, start_new_session)
File "c:\anaconda3\lib\subprocess.py", line 1112, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Не удается найти указанный файл
error: command 'c:\\anaconda3\\python.exe' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite, numba, dtwalign
Found existing installation: llvmlite 0.20.0
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
``
Make sure you first install pandas library.
https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html
You can then install dtwalign python with following command(administrator):
pip install dtwalign
Errors should then be solved.
when running the command:
pip install pyp2p
I receive to following error:
Collecting pyp2p
Using cached pyp2p-0.8.2-py2.py3-none-any.whl (66 kB)
Collecting pyroute2>=0.3.15
Using cached pyroute2-0.5.14.tar.gz (873 kB)
Collecting ntplib>=0.3.3
Using cached ntplib-0.3.4-py3-none-any.whl (5.9 kB)
Collecting ipaddress>=1.0.14
Using cached ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: requests>=2.8.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from pyp2p) (2.24.0)
Collecting netifaces>=0.10.4
Using cached netifaces-0.10.9.tar.gz (28 kB)
Collecting twisted>=15.4.0
Using cached Twisted-20.3.0.tar.bz2 (3.1 MB)
Requirement already satisfied: win_inet_pton in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from pyroute2>=0.3.15->pyp2p) (1.1.0)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.8.1->pyp2p) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.8.1->pyp2p) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.8.1->pyp2p) (1.25.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.8.1->pyp2p) (2020.6.20)
Requirement already satisfied: zope.interface>=4.4.2 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (5.2.0)
Requirement already satisfied: constantly>=15.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (15.1.0)
Requirement already satisfied: incremental>=16.10.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (17.5.0)
Requirement already satisfied: Automat>=0.3.0 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (20.2.0)
Requirement already satisfied: hyperlink>=17.1.1 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (21.0.0)
Requirement already satisfied: PyHamcrest!=1.10.0,>=1.9.0 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (2.0.2)
Requirement already satisfied: attrs>=19.2.0 in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from twisted>=15.4.0->pyp2p) (20.3.0)
Requirement already satisfied: six in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from Automat>=0.3.0->twisted>=15.4.0->pyp2p) (1.15.0)
Requirement already satisfied: setuptools in c:\users\woutv\appdata\local\programs\python\python38-32\lib\site-packages (from zope.interface>=4.4.2->twisted>=15.4.0->pyp2p) (53.0.0)
Using legacy 'setup.py install' for netifaces, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyroute2, since package 'wheel' is not installed.
Using legacy 'setup.py install' for twisted, since package 'wheel' is not installed.
Installing collected packages: twisted, pyroute2, ntplib, netifaces, ipaddress, pyp2p
Running setup.py install for twisted ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\woutv\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\woutv\\AppData\\Local\\Temp\\pip-install-5hfmjmxi\\twisted_4f16cdfbaea243e282e7aa8a376189e6\\setup.py'"'"'; __file__='"'"'C:\\Users\\woutv\\AppData\\Local\\Temp\\pip-install-5hfmjmxi\\twisted_4f16cdfbaea243e282e7aa8a376189e6\\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\woutv\AppData\Local\Temp\pip-record-y_l6uo1b\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\woutv\appdata\local\programs\python\python38-32\Include\twisted'
cwd: C:\Users\woutv\AppData\Local\Temp\pip-install-5hfmjmxi\twisted_4f16cdfbaea243e282e7aa8a376189e6\
Complete output (955 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\twisted
than there are A LOT of lines that look almost identical to this : copying src\twisted\conch\unix.py -> build\lib.win32-3.8\twisted\conch
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -Ic:\users\woutv\appdata\local\programs\python\python38-32\include -Ic:\users\woutv\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include" /Tcsrc/twisted/test/raiser.c /Fobuild\temp.win32-3.8\Release\src/twisted/test/raiser.obj
raiser.c
c:\users\woutv\appdata\local\programs\python\python38-32\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\woutv\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\woutv\\AppData\\Local\\Temp\\pip-install-5hfmjmxi\\twisted_4f16cdfbaea243e282e7aa8a376189e6\\setup.py'"'"'; __file__='"'"'C:\\Users\\woutv\\AppData\\Local\\Temp\\pip-install-5hfmjmxi\\twisted_4f16cdfbaea243e282e7aa8a376189e6\\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\woutv\AppData\Local\Temp\pip-record-y_l6uo1b\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\woutv\appdata\local\programs\python\python38-32\Include\twisted' Check the logs for full command output.
Anyone know how to fix this?
I dont know if this is enough information so dont hesitate to ask for more info.
This question already has answers here:
SyntaxError in setup.py with pip to install module
(4 answers)
Closed 2 years ago.
This is what i get on cmd when i tried to pip install scrapy...i could'nt put the full code in due to char limits. This is on a windows 10 64 bit pc..kindly help. please help me deal with this problem...cant find any answers that work for me..kindly show steps as i'm new to the python universe..will appreciate the help
C:\Users\Administrator>pip install scrapy
Collecting scrapy
Using cached Scrapy-2.2.0-py2.py3-none-any.whl (241 kB)
Requirement already satisfied: zope.interface>=4.1.3 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (5.1.0)
Requirement already satisfied: w3lib>=1.17.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (1.22.0)
Requirement already satisfied: pyOpenSSL>=16.2.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (19.1.0)
Requirement already satisfied: PyDispatcher>=2.0.5 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (2.0.5)
Requirement already satisfied: itemadapter>=0.1.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (0.1.0)
Requirement already satisfied: cssselect>=0.9.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (1.1.0)
Requirement already satisfied: lxml>=3.5.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (4.5.1)
Requirement already satisfied: cryptography>=2.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (2.9.2)
Requirement already satisfied: queuelib>=1.4.2 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (1.5.0)
Requirement already satisfied: service-identity>=16.0.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (18.1.0)
Requirement already satisfied: protego>=0.1.15 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (0.1.16)
Collecting Twisted>=17.9.0
Using cached Twisted-20.3.0.tar.bz2 (3.1 MB)
Requirement already satisfied: parsel>=1.5.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from scrapy) (1.6.0)
Requirement already satisfied: setuptools in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from zope.interface>=4.1.3->scrapy) (47.3.1)
Requirement already satisfied: six>=1.4.1 in c:\users\administrator\appdata\roaming\python\python38\site-packages (from w3lib>=1.17.0->scrapy) (1.15.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from cryptography>=2.0->scrapy) (1.14.0)
Requirement already satisfied: pyasn1-modules in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from service-identity>=16.0.0->scrapy) (0.2.8)
Requirement already satisfied: pyasn1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from service-identity>=16.0.0->scrapy) (0.4.8)
Requirement already satisfied: attrs>=16.0.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from service-identity>=16.0.0->scrapy) (19.3.0)
Requirement already satisfied: constantly>=15.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (15.1.0)
Requirement already satisfied: incremental>=16.10.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (17.5.0)
Requirement already satisfied: Automat>=0.3.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (20.2.0)
Requirement already satisfied: hyperlink>=17.1.1 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (19.0.0)
Requirement already satisfied: PyHamcrest!=1.10.0,>=1.9.0 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from Twisted>=17.9.0->scrapy) (2.0.2)
Requirement already satisfied: pycparser in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.0->scrapy) (2.20)
Requirement already satisfied: idna>=2.5 in c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages (from hyperlink>=17.1.1->Twisted>=17.9.0->scrapy) (2.9)
Using legacy setup.py install for Twisted, since package 'wheel' is not installed.
Installing collected packages: Twisted, scrapy
**Running setup.py install for Twisted ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\administrator\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-_mynyc6t\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-_mynyc6t\\Twisted\\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\Administrator\AppData\Local\Temp\pip-record-798owh4i\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\administrator\appdata\local\programs\python\python38\Include\Twisted'
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-_mynyc6t\Twisted\
Complete output (955 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\twisted
As mentioned by Daniel here, turtle already comes included with python so you don't need to install it.
I have been trying to install textract using command:
!pip install textract, but getting below errors:
Collecting textract
Requirement already satisfied: docx2txt==0.6 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (0.6)
Requirement already satisfied: argcomplete==1.8.2 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (1.8.2)
Collecting six==1.10.0 (from textract)
Using cached https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting EbookLib==0.15 (from textract)
Collecting pocketsphinx==0.1.3 (from textract)
Using cached https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
Requirement already satisfied: beautifulsoup4==4.5.3 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (4.5.3)
Requirement already satisfied: SpeechRecognition==3.6.3 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (3.6.3)
Requirement already satisfied: chardet==2.3.0 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (2.3.0)
Requirement already satisfied: python-pptx==0.6.5 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (0.6.5)
Requirement already satisfied: xlrd==1.0.0 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from textract) (1.0.0)
Requirement already satisfied: lxml in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from EbookLib==0.15->textract) (4.3.2)
Requirement already satisfied: XlsxWriter>=0.5.7 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from python-pptx==0.6.5->textract) (1.1.5)
Requirement already satisfied: Pillow>=2.6.1 in /home/UGI/akedia/.conda/envs/at3deploy/lib/python3.6/site-packages (from python-pptx==0.6.5->textract) (5.3.0)
Building wheels for collected packages: pocketsphinx
Building wheel for pocketsphinx (setup.py) ... error
Complete output from command /home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/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 /backup/mltmp/pip-wheel-7t5e7pu4 --python-tag cp36:
running bdist_wheel
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
spacy 2.0.12 has requirement regex==2017.4.5, but you'll have regex 2018.7.11 which is incompatible.
Installing collected packages: six, EbookLib, pocketsphinx, textract
Running setup.py install for pocketsphinx ... error
Complete output from command /home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /backup/mltmp/pip-record-ws03agmf/install-record.txt --single-version-externally-managed --compile:
running install
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/home/UGI/akedia/.conda/envs/at3deploy/bin/python -u -c "import setuptools, tokenize;__file__='/backup/mltmp/pip-install-k3hazve3/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /backup/mltmp/pip-record-ws03agmf/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /backup/mltmp/pip-install-k3hazve3/pocketsphinx/
As mentioned here, you cannot directly install it as pip install tesseract you will need to execute the commands based on your os, now based on your directory architecture I am assuming that it is a Linux system, and since you used !pip I believe you are using Ipyhton notebook or jupyter shell to install this,
In which case you will need to run it in two parts, first run
!apt-get install python-dev libxml2-dev libxslt1-dev antiword unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig
And then run
!apt-get install libpulse-dev
!pip install textract
And you get, Apparently you also need libpulse-dev which is not mentioned in the official installation guide.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpulse-mainloop-glib0
The following NEW packages will be installed:
libpulse-dev libpulse-mainloop-glib0
0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded.
Need to get 104 kB of archives.
After this operation, 714 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-mainloop-glib0 amd64 1:11.1-1ubuntu7.2 [22.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-dev amd64 1:11.1-1ubuntu7.2 [81.5 kB]
Fetched 104 kB in 1s (192 kB/s)
Selecting previously unselected package libpulse-mainloop-glib0:amd64.
(Reading database ... 119263 files and directories currently installed.)
Preparing to unpack .../libpulse-mainloop-glib0_1%3a11.1-1ubuntu7.2_amd64.deb ...
Unpacking libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7.2) ...
Selecting previously unselected package libpulse-dev:amd64.
Preparing to unpack .../libpulse-dev_1%3a11.1-1ubuntu7.2_amd64.deb ...
Unpacking libpulse-dev:amd64 (1:11.1-1ubuntu7.2) ...
Setting up libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7.2) ...
Setting up libpulse-dev:amd64 (1:11.1-1ubuntu7.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Collecting textract
Requirement already satisfied: docx2txt==0.6 in /usr/local/lib/python3.6/dist-packages (from textract) (0.6)
Requirement already satisfied: argcomplete==1.8.2 in /usr/local/lib/python3.6/dist-packages (from textract) (1.8.2)
Requirement already satisfied: EbookLib==0.15 in /usr/local/lib/python3.6/dist-packages (from textract) (0.15)
Requirement already satisfied: python-pptx==0.6.5 in /usr/local/lib/python3.6/dist-packages (from textract) (0.6.5)
Requirement already satisfied: six==1.10.0 in /usr/local/lib/python3.6/dist-packages (from textract) (1.10.0)
Requirement already satisfied: beautifulsoup4==4.5.3 in /usr/local/lib/python3.6/dist-packages (from textract) (4.5.3)
Requirement already satisfied: chardet==2.3.0 in /usr/local/lib/python3.6/dist-packages (from textract) (2.3.0)
Requirement already satisfied: xlrd==1.0.0 in /usr/local/lib/python3.6/dist-packages (from textract) (1.0.0)
Collecting pocketsphinx==0.1.3 (from textract)
Using cached https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
Requirement already satisfied: SpeechRecognition==3.6.3 in /usr/local/lib/python3.6/dist-packages (from textract) (3.6.3)
Requirement already satisfied: lxml in /usr/local/lib/python3.6/dist-packages (from EbookLib==0.15->textract) (4.2.6)
Requirement already satisfied: Pillow>=2.6.1 in /usr/local/lib/python3.6/dist-packages (from python-pptx==0.6.5->textract) (4.1.1)
Requirement already satisfied: XlsxWriter>=0.5.7 in /usr/local/lib/python3.6/dist-packages (from python-pptx==0.6.5->textract) (1.1.5)
Requirement already satisfied: olefile in /usr/local/lib/python3.6/dist-packages (from Pillow>=2.6.1->python-pptx==0.6.5->textract) (0.46)
Building wheels for collected packages: pocketsphinx
Building wheel for pocketsphinx (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/38/80/4f/ddc3e8c2b788f2c7f1d625ae870f6bafd3038ff04a3445a2f8
Successfully built pocketsphinx
Installing collected packages: pocketsphinx, textract
Successfully installed pocketsphinx-0.1.3 textract-1.6.1