Problem installing PyQtChart module in python 3.7 [duplicate] - python

This question already has answers here:
Cannot import PyQtChart in Python 3.7
(2 answers)
Closed 2 years ago.
I am trying to install the PyQtChart module for embedded graphics in PyQt5, for this I do the traditional procedure:
windows + R
pip install PyQtChart
The problem is that when doing so, I get the following errors, and the module is not installed, attached image:
For my works I use the editor 'Spyder', which comes when I install anaconda.
If someone has had a similar problem or knows how to solve this type of problem, I would greatly appreciate it, kind regards.

You have to have the same version of PyQt5 and PyQtChart installed:
python -m pip install PyQt5==5.15 PyQtChart==5.15
Also, try to install from windows power shell(admin) mode

Verify that the version of PyQtChart is the same that PyQt5:
python -m pip install PyQt5==5.13 PyQtChart==5.13

Related

Why python didn't see nltk module? [duplicate]

This question already has answers here:
How do I use installed packages in PyCharm?
(14 answers)
Closed 4 months ago.
I cant run my programm because nltk module is missing but i just intstalled it and it just right here in the folder
I tried to reinstall my python, and tried to change python interpreter but nothing worked
How have you actually installed nltk?
You can check if it's actually installed with pip freeze.
What might be happening here is that you could have another version of python installed, so make sure that you actually call the same interpreter for checking and installing with pip, in your case E:/pythonProject1/Scripts/python.exe -m pip freeze and E:/pythonProject1/Scripts/python.exe -m pip install nltk

Error trying to install matplotlib in Windows [duplicate]

This question already has answers here:
Cannot install Matplotlib on Python 3.10
(2 answers)
Closed 1 year ago.
I'm trying to install matplotlib for Python 3.10 in Windows. Im using pip: pip install matplotlib I've already installed NumPy, Cython, Pillow and other libraries needed. But it shows this error:
error: Failed to download any of the following: ['http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz']. Please download one of these urls and extract it into 'build/' at the top-level of the source repository.
I've downloaded the said library and copied it in .cache/matplotlib/build but it doesnt work.
Any idea?
So as #FlyingTeller commented, there are no stable realeses of matplotlib so using --pre fixed the problem.

Is it possible to move pip packages from one python version to another? [duplicate]

This question already has answers here:
How to install python packages from older version to newer version?
(2 answers)
Copy installed packages using pip to another environment
(1 answer)
Closed 2 years ago.
I have been using python 3.8 for quite some time , but now I want to use python 3.9. The problem is that I have a lot of packages installed in the 3.8 folder. Is it possible to "move" all these packages to the 3.9 folder? Or can anyone suggest me a better way to deal with this issue?
You can make a requirements .txt file by:
pip freeze > requirements.txt
and after installing python 3.9 type(in the same directory in which you made the requirements.txt):
pip install -r my_packages.txt
As shown in this post

Unable to install new packages for Python 2.7 Mac Terminal [duplicate]

This question already has answers here:
Python pip install module is not found. How to link python to pip location?
(15 answers)
Closed 5 years ago.
I have installed Python 2.7 on my Mac, but I am unable to install packages using pip2.7 install. Any time I try to install a package in the terminal, for example,
pip2.7 install pandas
I get the OSError:
OSError: [Errno 1] Operation not permitted:
I also have Python 3.6 installed and I am able to install packages for that version, but I have some work that needs to be done in 2.7 and I want to be able to run my script and ensure that it works in 2.7.
you can't change thing in /system on mac and the default python‘s library of mac is here. So you can't install anything.
The best way is install a new python of 2.7
The another way is close the rootless of mac.

How do you specify which python distribution to install a module for with pip? [duplicate]

This question already has answers here:
How to use pip with Python 3.x alongside Python 2.x
(11 answers)
Closed 6 years ago.
I am trying to install the yweather module for python 3.5 on my mac using pip install, however as i have both python 3.5 and 2.7 i don't know how to specify which distribution to install the module for - how would you do this?
pip will install a module for the default python on your system. If you want to be sure that pip installs for a specific version, use pip2 or pip3 instead of pip.
Also if you aren't already, you should consider using virtual environments.
As seen in the docs
Download the most recent release from yweather’s PyPi page. Unpack the
tarball. From inside the yweather-0.X directory
Python 2
python setup.py install
Python 3
python3 setup.py install

Categories

Resources