cant install chatterbot (full command output) - python

I've been trying to install chatterbot for a while now, and I keep getting an error that says:
"ERROR: Command errored out with exit status 1:
'c:\users\myusername\appdata\local\programs\python\python38\python.exe'
'c:\users\myusername\appdata\local\programs\python\python38\lib\site-packages\pip'
install --ignore-installed --no-user --prefix
'C:\Users\myusername\AppData\Local\Temp\pip-build-env-47p4l01_\overlay'
--no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0,<0.33.0' Cython
'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0'
'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.0.8,<7.1.0' Check the logs for
full command output."
and I couldn't find another way of installing this, can you help me, please?...

Related

Unable to install cryptography and PyInstaller

I'm getting below error while installing the cryptography and PyInstaller packages. I have already installed setuptools==54.0.0 (tried 66.1.1 and 65.3.0 versions also). cffi==1.15.1 and setuptools-rust==1.5.2.
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python39\python.exe' 'C:\Users{userid}\AppData\Local\Temp\pip-standalone-pip-cpesje2d_env_pip_.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users{userid}\AppData\Local\Temp\pip-build-env-yhp_bywu\overlay' --no-warn-script-location --no-binary :none: --no-index -- 'setuptools>=40.6.0, ! =60.9.0' wheel 'cffi>=1.12; platform_python_implementation! = '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4'
I want help to install these 2 packages as I can install other packages

pip cannot find build dependencies

I am trying to install some python libraries using
pip install -r requirements
The file looks like:
spacy>=2.1.0,<2.2.0
matplotlib
pandas
networkx
flask
inflect
It was initially giving errors for C++ build tools, but after installing those using the visual studio installer I get the following error.
Collecting spacy<2.2.0,>=2.1.0
Using cached spacy-2.1.9.tar.gz (30.7 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\haris\AppData\Local\Programs\Python\Python38\python.exe'
'C:\Users\haris\AppData\Local\Temp\pip-standalone-pip-iges9uxt\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix
'C:\Users\haris\AppData\Local\Temp\pip-build-env-49g1awc5\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0,<0.33.0' Cython 'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.0.8,<7.1.0'
cwd: None
ERROR: Failed building wheel for blis
Running setup.py clean for blis
Successfully built preshed
Failed to build blis
Do I need to reinstall a newer version of python?

Error in cmd whlie installing CPPYY on windows

I have been trying to install Cppyy on my computerbut I'm new to this so I don't know a whole lot about this I have python and pip install on my computer
C:\WINDOWS\system32>python --version
Python 3.8.6
C:\WINDOWS\system32> pip --version
pip 20.2.3
when I try to run
pip install cppyy
cmd gives me error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\sarfaraz\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Users\sarfaraz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\sarfaraz\AppData\Local\Temp\pip-build-env-z4gw8trb\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'CPyCppyy==1.11.4; python_implementation != '"'"'PyPy'"'"'' 'cppyy-backend==1.14.0; python_implementation != '"'"'PyPy'"'"'' 'cppyy-cling==6.21.3; python_implementation != '"'"'PyPy'"'"'' 'cppyy-cling<=6.18.2.3; python_implementation == '"'"'PyPy'"'"'' setuptools wheel
cwd: None
Complete output (42 lines):
Ignoring cppyy-cling: markers 'platform_python_implementation == "PyPy"' don't match your environment
Collecting CPyCppyy==1.11.4
Using cached CPyCppyy-1.11.4.tar.gz (178 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\sarfaraz\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Users\sarfaraz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\sarfaraz\AppData\Local\Temp\pip-build-env-hj42_3n3\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'cppyy-cling>=6.21.3' 'cppyy-backend>=1.14' setuptools wheel
cwd: None
Complete output (31 lines):
Collecting cppyy-cling>=6.21.3
Using cached cppyy_cling-6.21.3-py2.py3-none-win_amd64.whl (18.2 MB)
Collecting cppyy-backend>=1.14
Using cached cppyy-backend-1.14.0.tar.gz (32 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting setuptools
Using cached setuptools-50.3.0-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Building wheels for collected packages: cppyy-backend
Building wheel for cppyy-backend (PEP 517): started
Building wheel for cppyy-backend (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\sarfaraz\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Users\sarfaraz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\sarfaraz\AppData\Local\Temp\tmpojxb8d41'
cwd: C:\Users\sarfaraz\AppData\Local\Temp\pip-install-znkz3pmg\cppyy-backend
Complete output (6 lines):
running bdist_wheel
running build
running build_ext
checking for build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release
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/
----------------------------------------
ERROR: Failed building wheel for cppyy-backend
Failed to build cppyy-backend
ERROR: Could not build wheels for cppyy-backend which use PEP 517 and cannot be installed directly
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\sarfaraz\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Users\sarfaraz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\sarfaraz\AppData\Local\Temp\pip-build-env-hj42_3n3\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'cppyy-cling>=6.21.3' 'cppyy-backend>=1.14' setuptools wheel Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\sarfaraz\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Users\sarfaraz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\sarfaraz\AppData\Local\Temp\pip-build-env-z4gw8trb\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'CPyCppyy==1.11.4; python_implementation != '"'"'PyPy'"'"'' 'cppyy-backend==1.14.0; python_implementation != '"'"'PyPy'"'"'' 'cppyy-cling==6.21.3; python_implementation != '"'"'PyPy'"'"'' 'cppyy-cling<=6.18.2.3; python_implementation == '"'"'PyPy'"'"'' setuptools wheel Check the logs for full command output.
I found some instruction on the site but it was hard for me to follow it since I'm new to this stuff
Thanks in advance
Try to upgrade setuptools wheel
pip install -U setuptools wheel
End then try
pip install cppyy --no-index
If not help, that problem may by with python 3.8
By PyPi it’s supported <=3.7
As shown in the error message and mentioned already by hoefling, you need a system compiler, at the very minimum for system headers, but also for C++ library headers. Cling needs the code from these headers to parse any new C++ code you may give it that uses C++ standard library or Windows system features.
In principle, it's possible to ship a precompiled header with cppyy-cling that contains all system and C++ headers as IR bitcode, but MSVC likes to change header include guards between versions, so that would then only work if there is no system compiler. (It's somewhat better on Linux, but it, too, has changed include guard names in some instances.) This will be revisited once Cling supports precompiled modules (PCMs; as opposed to headers) on Windows. Then these PCMs can be prepackaged and installed conditionally if no system compiler is available. Module support in upstream is, however, still very fresh and not even released yet, so this is something that will only appear in the medium-term.
Anyway, MSVC is free these days. :)

OSX: pyInstaller failing to download

For all packages I've installed, I've used
pip3 install [package name] and I haven't had any issues.
For PyInstaller I get this error message
Collecting pyinstaller
Using cached PyInstaller-3.6.tar.gz (3.5 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/st/_5np1sr92zl_34jy58rt65c40000gn/T/pip-build-env-9ad1w22t/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
cwd: None
Complete output (44 lines):
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
Edit: From trying pip3 install --no-cache-dir pyinstaller
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/st/_5np1sr92zl_34jy58rt65c40000gn/T/pip-build-env-po9ly7dc/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.

Error During installing this library " pip install bcrypt" in django

I got an error while installing bcrypt in Django
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\Hassan\AppData\Local\Temp\pip-install-w128k6kc\cffi\
----------------------------------------
Command "C:\Users\Hassan\PycharmProjects\django_level_5\venv\Scripts\python.exe
C:\Users\Hassan\PycharmProjects\django_level_5\venv\lib\site-packages\pip-19.0.3-py
3.8.egg\pip install --ignore-installed --no-user --prefix C:\Users\Hassan\AppData\Local\Temp\pip-build-env-ky7v9nxx\overlay
--no-warn-script-location --no-binary :
none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.8.0 wheel "cffi>=1.1; python_implementation != 'PyPy'""
failed with error code 1 in None
Apply these three commands
pip uninstall bcrypt cffi pycparser
pip install --user --upgrade cffi
pip install --user --upgrade bcrypt
if this error is show
microsoft visual c++ 14.0 is required
then you have to download vs_buildtools after installing and
enter these above commmands again

Categories

Resources