I try to install chatterbot, but there comes a time when it's in a loop to install spacy. appears written:
Using cached spacy-2.1.8.tar.gz (30.7 MB)
Installing build dependencies ...
After waiting some time it returns 145 lines of errors.
I already have spacy V3.2.1 installed, I don't know what else to do...
I using:
Windows 11
Python 3.9.6
Install chatterbot from it's source: https://github.com/gunthercox/ChatterBot/archive/master.zip
Then unzip the file.
After open up cmd and type in: cd chatter_bot_master_directory
Finally just type: python(3) setup.py install
From this post
Related
I'm trying to install SimpleElastix for python. As far as I can tell, you can either download a whl file from https://simpleelastix.github.io/#download
or simply pip install as shown here: https://pypi.org/project/SimpleITK-SimpleElastix/
I first tried downloading it and am trying to install SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl that I have saved to drive.
I am using the following (pip has been updated):
(hids3) C:\Windows\system32>python --version
Python 3.8.0
(hids3) C:\Windows\system32>pip --version
pip 22.0.4 from C:\Users\kated\anaconda3\envs\hids3\lib\site-packages\pip (python 3.8)
I try to run pip install SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl
and get the following error:
ERROR: SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform.
According to Error "filename.whl is not a supported wheel on this platform" , this could be caused by a downloading the .whl file for a wrong python version. I would expect python 3.8 to support a CPython 3.4 version or am I wrong for assuming this?
Alternative way to download SimpleElastix: https://pypi.org/project/SimpleITK-SimpleElastix/
I also tried running
pip install --user SimpleITK-SImpleElastix
in the terminal, which worked, but when I run
import SimpleITK as sitk
sitk.Elastix()
I get
AttributeError: module 'SimpleITK' has no attribute 'Elastix'
Anyone have any idea what I'm doing wrong in either case?
I`m using python poetry(https://python-poetry.org/) for dependency management in my project.
Though when I`m running poetry install, its giving me below error.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
I`m having python 3.9 installed in my laptop.
I installed numpy 1.21.5 using pip install numpy, I even tried to down version it to 1.19.5.
Though I`m getting the same error.
I found out many people are getting ERROR: Failed building wheel for numpy this error in python 3.10, they solved it by down versioning python to 3.9, though that didnt working for me.
I solved it by doing the following steps:-
I updated the pyproject.toml(This file contains all the library/dependency/dev dependency)with the numpy version that I installed using pip install numpy command.
Run poetry lock to update poetry.lock file(contains details information about the library)
Run poetry install again, & it should work fine.
If you are having any problems, you can comment.
I`ll try to answer it.
I had this trying to install numpy with PyPy on macOS.
I solved the issue by first running brew doctor, which showed that my Command Line Tools (XCode) were outdated. Then I just followed the instructions to update them:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
This solved the issue.
My configuration:
macOS 12.2.1 Monterey
> python --version
Python 3.8.12 (9ef55f6fc369, Oct 25 2021, 05:10:01)
[PyPy 7.3.7 with GCC Apple LLVM 13.0.0 (clang-1300.0.29.3)]
Numpy error solved
Error: failed to build wheels for numpy which is required to install project.tmol
This error cause due to outdated numpy version simply run this command
MATHLAB = "m" pip install numpy
`
My python version:
Python -V=3.9
It doesn't works in se case but most of the time works.
If you are working in venvthen try to install numpy in venv.
Then run your code it will be working
Fine.
I have a Python 3 project. I am developing it locally.
I tried to install it by cding into the project directory and then executing
pip3 install .
The resulting output was:
Processing /Users/XXXXX/dev/misc/rec2sqlite
Building wheels for collected packages: rec2sqlite
Building wheel for rec2sqlite (setup.py) ... done
Created wheel for rec2sqlite: filename=rec2sqlite-1.0-py3-none-any.whl size=3758 sha256=77225f8b2444fb4143ffb2aa70ee22735eff591452ba777387cc10b42f21b6ac
Stored in directory: /private/var/folders/pt/7nsl9k8d6q56bwj9nc6lydzh0000gn/T/pip-ephem-wheel-cache-_voecun1/wheels/8b/47/6c/df4c285c608c63e5b3d6df78ec193cf038b3d4a56f4e3b2420
Successfully built rec2sqlite
Installing collected packages: rec2sqlite
Attempting uninstall: rec2sqlite
Found existing installation: rec2sqlite 1.0
Uninstalling rec2sqlite-1.0:
Successfully uninstalled rec2sqlite-1.0
Successfully installed rec2sqlite-1.0
Then I went to another directory and wanted to run the main function. I entered python3 rec2sqlite and got the following output:
/usr/local/bin/python3: can't open file 'rec2sqlite': [Errno 2] No such file or directory
What do I need to change in the source code and/or the commands I use in order to be able to run the main function after installing the current version using pip?
What happen when you run python3 rec2sqlite from inside the project directory?
If you have to run the it from another directory you could try with the full path to the directory python3 /<path-to-project-directory>/rec2sqlite
This answer helped. To fix the error, I had to do following:
Put the main function code into the file __main__.py.
Install the package using pip3 install . from the project directory.
Use python3 -m <moduleName> (e. g. python3 -m rec2sqlite) to run the program installed in step 2.
I am trying to use pip3 with python 3.9 to install modules... I read replies for windows which suggest installing VisualStudio as we need a good C++ compiler
I use macOS
I am adding the input and error message for better understanding
Input:
rohansaswade#Rohans-MBP ~ % pip3 install numpy
Output:
Collecting numpy
Using cached numpy-1.19.2.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
I did not mention the complete error output as it seems pretty irrelevant, yet if you need it to help me, please drop a comment.
I use macOS Catalina 10.15.7 and python 3.9
I had the same issue.
In my case, the steps below helped though it was time-consuming.
#Preparation
pip install cython
git clone https://github.com/numpy/numpy.git
#Steps
cd numpy
python setup.py build
python setup.py install
I hope it works for you too.
I'm trying to install matplotlib library using pip from cmd (Windows 10), but the installation finishes after the download without actually installing the package. I don't get any error message, it just finishes.
cmd output:
C:\Users\username>pip install matplotlib
Collecting matplotlib
Using cached https://files.pythonhosted.org/packages/1a/c0/69e3f695d7384012e90be1e16570c08953baae00fd98094179ef87c7d5a2/matplotlib-3.1.1-cp37-cp37m-win_amd64.whl
C:\Users\username>
Trying without cached version doesn't help.
C:\Users\username>pip install --no-cache-dir matplotlib
Collecting matplotlib
Downloading https://files.pythonhosted.org/packages/1a/c0/69e3f695d7384012e90be1e16570c08953baae00fd98094179ef87c7d5a2/matplotlib-3.1.1-cp37-cp37m-win_amd64.whl (9.1MB)
100% |████████████████████████████████| 9.1MB 25.5MB/s
C:\Users\username>
I also tried downloading the .whl file and installing manually, same problem.
C:\Users\username\Downloads>pip install matplotlib-3.1.1-cp37-cp37m-win_amd64.whl
Processing c:\users\username\downloads\matplotlib-3.1.1-cp37-cp37m-win_amd64.whl
C:\Users\username\Downloads>
After all this matplotlib doesn't exist as an installed library. Other libraries are being installed and working fine without problems.
C:\Users\username\Downloads>pip show matplotlib
C:\Users\username\Downloads>
C:\Users\username\Downloads>pip show keras
Name: Keras
Version: 2.2.4
Summary: Deep Learning for humans
Home-page: https://github.com/keras-team/keras
Author: Francois Chollet
Author-email: francois.chollet#gmail.com
License: MIT
Location: c:\users\username\appdata\local\programs\python\python37\lib\site-packages
Requires: h5py, numpy, scipy, six, keras-applications, pyyaml, keras-preprocessing
Required-by:
I've done the whole exercise using pip3 also, the results are the same.
I've done this in cmd, powershell, and VSCode's powershell terminal as well, still same result.
Any idea what is happening here and how to solve it?
Note: I've replaced my user name with "username" in the cmd outputs.
Edit: I also tried installing a different version of matplotlib, but still getting the same result.
All I can think of is running this code from command line in the following order (Windows users):
python -m pip install -U pip
python -m pip uninstall matplotlib
This would pop the question: Proceed (y/n)?
y
python -m pip install matplotlib