im installing pyqt5 tools and this happens
C:\Users\Jansen>pip install pyqt5-tools
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
Using cached pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB)
Using cached pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB)
Using cached pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB)
Downloading pyqt5_tools-5.15.3.3.0.3-py3-none-any.whl (28 kB)
Downloading pyqt5_tools-5.15.2.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
Using cached python_dotenv-0.20.0-py3-none-any.whl (17 kB)
Collecting pyqt5==5.15.2
Downloading PyQt5-5.15.2.tar.gz (3.3 MB)
---------------------------------------- 3.3/3.3 MB 6.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error`
im trying to install pyqt5 so that i can use the pyuic5 command
As I can't yet comment questions, may I ask: are you using a virtual environment?
Anyway, you could try with this command:
pip install pyqt5-tools~=5.15
Moreover, as #musicamante said, if you're using a Python version that's above 3.10, a downgrade to version 3.9 or older is recommended as pyqt tools ar still not compatible with >3.9 versions. However, as I've seen here, you can try installing an specific 5.15 release version, so please try:
pip install PyQt5==5.15.5
Download python 3.9
Download virtualenv from https://bootstrap.pypa.io/virtualenv.pyz
Copy virtualenv.pyz to python 3.9 directory
Install virtualenv
python virtualenv.pyz env_folder
Go to env_folder/Script.
Run activate file
pip install pyqt5-tools
Run Qt
pyqt5-tools designer
I faced the same problem, install the desired tool, in my case QT designer, i was not getting it installed with pyqt5-tools command, instead i used pip install pyqt5 designer, then the designer was not opening in terminal, then go to your python directory and find the name that designer has been assigned, in my case it was named only designer, then you can open the tool by giving the name in the directory.
Related
I'm trying to install guesslang with pip but it seems that the last version (which was released on August 2021) depends on an obsolete version of Tensorflow (2.5.0). The problem is that I can't find this version anywhere.
So, how can I install it? Or is there any other python library that does language detection?
However here's the error I get when trying to install it, maybe I misunderstood...
> pip install guesslang
Collecting guesslang
Using cached guesslang-2.2.1-py3-none-any.whl (2.5 MB)
Using cached guesslang-2.2.0-py3-none-any.whl (2.5 MB)
Using cached guesslang-2.0.3-py3-none-any.whl (2.1 MB)
Using cached guesslang-2.0.1-py3-none-any.whl (2.1 MB)
Using cached guesslang-2.0.0-py3-none-any.whl (13.0 MB)
Using cached guesslang-0.9.3-py3-none-any.whl (3.2 MB)
Collecting numpy
Using cached numpy-1.24.1-cp310-cp310-win_amd64.whl (14.8 MB)
Collecting guesslang
Using cached guesslang-0.9.1-py3-none-any.whl (3.2 MB)
ERROR: Cannot install guesslang==0.9.1, guesslang==0.9.3, guesslang==2.0.0, guesslang==2.0.1, guesslang==2.0.3, guesslang==2.2.0 and guesslang==2.2.1 because these package versions have conflicting dependencies.
The conflict is caused by:
guesslang 2.2.1 depends on tensorflow==2.5.0
guesslang 2.2.0 depends on tensorflow==2.5.0
guesslang 2.0.3 depends on tensorflow==2.5.0
guesslang 2.0.1 depends on tensorflow==2.2.0
guesslang 2.0.0 depends on tensorflow==2.2.0
guesslang 0.9.3 depends on tensorflow==1.7.0rc1
guesslang 0.9.1 depends on tensorflow==1.1.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
tensorflow 2.5.0 released wheels for Python 3.6-3.9. Downgrade to Python 3.9 to install guesslang with tensorflow 2.5.0.
i'm trying to install some packages from python using a requirements.txt file and some execute until i run into this error
Collecting numpy
Using cached numpy-1.24.1-cp311-cp311-win_amd64.whl (14.8 MB)
Collecting nltk
Using cached nltk-3.8.1-py3-none-any.whl (1.5 MB)
Collecting gensim
Using cached gensim-4.3.0-cp311-cp311-win_amd64.whl (24.0 MB)
Collecting scikit-learn
Using cached scikit_learn-1.2.0-cp311-cp311-win_amd64.whl (8.2 MB)
Collecting PyDictionary
Using cached PyDictionary-2.0.1-py3-none-any.whl (6.1 kB)
Collecting fuzzywuzzy
Using cached fuzzywuzzy-0.18.0-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: beautifulsoup4 in c:\users\administrator\plagcheker\.plagenv\lib\site-packages (from -r requirements.txt (line 7)) (4.11.1)
Collecting python-Levenshtein
Using cached python_Levenshtein-0.20.9-py3-none-any.whl (9.4 kB)
Collecting pandas
Using cached pandas-1.5.2-cp311-cp311-win_amd64.whl (10.3 MB)
Collecting py-stringmatching
Using cached py_stringmatching-0.4.2.tar.gz (661 kB)
Preparing metadata (setup.py) ... done
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
ERROR: No matching distribution found for tkinter
my requirements.txt has:
nltk
gensim
scikit-learn
PyDictionary
fuzzywuzzy
beautifulsoup4
python-Levenshtein
pandas
py-stringmatching
tkinter
python-docx
What could be the issue?
First - tkinter should be already installed on your Python if you have Windows or MacOS Info here
Second - for debian and linux - Tkinter isn't distributed through pip; if it didn't come pre-packaged with Python, you have to get it from elsewhere
For Python 3:
sudo apt-get install python3-tk
For Python 2.7
sudo apt-get install python-tk
As you can see names aren't equal to 'tkinter' so change it to your version
It'll work only if you are using yum
yum install tkinter
P.S. If for some reason you don't have it on MAC you can use commands for Debian and Linux in other syntax:
brew install python-tk
Name, as you can see, is still not 'tkinter'. You can change it in your 'requirements.txt' file if your .exe doesn't use pip
You should install
sudo apt-get install python-tk
This should solve your issue
I write
pip install discord.py
it says
File "<stadin>", line 1
pip install discord.py
SyntaxError: invalid syntax
I try to wirte
$ pip install discord.py
it was the same problem
I try to write
py -3 -m pip install -U discord.py
It was the same problem. I need your help, guys
You don't write pip install discord in a file / in the python REPL, you type this into a terminal or command prompt itself, to tell python to install discord. If your on linux/mac, open a terminal, on windows, open cmd or powershell, and run:
python -m pip install discord.py
What you did previously was type python, which dropped you into a Python interpreter (python REPL), and you typed pip install discord.py, as if it were python code (its not, its a terminal command).
I did not face a problem to install discord.py. I tested with Python 3.10.0 and pip 22.3.1
pip install discord.py
Collecting discord.py
Downloading discord.py-2.1.0-py3-none-any.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 2.6 MB/s eta 0:00:00
Collecting aiohttp<4,>=3.7.4
Downloading aiohttp-3.8.3-cp310-cp310-macosx_10_9_x86_64.whl (358 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 358.3/358.3 kB 5.3 MB/s eta 0:00:00
Requirement already satisfied: attrs>=17.3.0 in /Volumes/SP PHD U3/python/venvs/tempPrj/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py) (22.2.0)
Collecting yarl<2.0,>=1.0
Downloading yarl-1.8.2-cp310-cp310-macosx_10_9_x86_64.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 3.6 MB/s eta 0:00:00
Collecting async-timeout<5.0,>=4.0.0a3
Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting aiosignal>=1.1.2
Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting multidict<7.0,>=4.5
Downloading multidict-6.0.4-cp310-cp310-macosx_10_9_x86_64.whl (29 kB)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /Volumes/SP PHD U3/python/venvs/tempPrj/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py) (2.1.1)
Collecting frozenlist>=1.1.1
Downloading frozenlist-1.3.3-cp310-cp310-macosx_10_9_x86_64.whl (35 kB)
Requirement already satisfied: idna>=2.0 in /Volumes/SP PHD U3/python/venvs/tempPrj/lib/python3.10/site-packages (from yarl<2.0,>=1.0->aiohttp<4,>=3.7.4->discord.py) (3.4)
Installing collected packages: multidict, frozenlist, async-timeout, yarl, aiosignal, aiohttp, discord.py
Successfully installed aiohttp-3.8.3 aiosignal-1.3.1 async-timeout-4.0.2 discord.py-2.1.0 frozenlist-1.3.3 multidict-6.0.4 yarl-1.8.2
You should enter the python mode first and enter pip install discord.pythis is not advisable。
You should execute it directly under the cmd window, it will work normally。
enter image description here
As per discord.py package on PyPi server:
Required Python >=3.8.0
You can check your Python version using:
python --version
Or if that doesn't work
python3 --version
If version is 3.7 or less, then you should update your Python installation to 3.8 or above and try again running pip command on terminal.
pip install discord.py
I am starting to use VS Code, but pylint is not installed and it gives me an error.
I try to install pylint using pip, but it gives me an error code.
Collecting pylint
Using cached pylint-2.6.0-py3-none-any.whl (325 kB)
Collecting astroid<=2.5,>=2.4.0
Using cached astroid-2.4.2-py3-none-any.whl (213 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting isort<6,>=4.2.5
Using cached isort-5.6.4-py3-none-any.whl (98 kB)
Collecting lazy-object-proxy==1.4.*
Using cached lazy-object-proxy-1.4.3.tar.gz (34 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
WARNING: Requested lazy-object-proxy==1.4.* from https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz#sha256=f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0 (from astroid<=2.5,>=2.4.0->pylint), but installing version 0.0.0
ERROR: Requested lazy-object-proxy==1.4.* from https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz#sha256=f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0 (from astroid<=2.5,>=2.4.0->pylint) has different version in metadata: '0.0.0'```
This is a bug of pip for now, see https://github.com/pypa/pip/issues/9203. The pip does something wrong in its package-dependencies handling. And there is a workaround listed in this issue, use --use-deprecated=legacy-resolver. And be noted: This will work until we release pip 21.0.
So run pip install --use-deprecated=legacy-resolver pylint will resolve this problem. This works for me on win10, finally I got lazy-object-proxy 0.0.0 and pylint 2.6.0 installed, though 0.0.0 is kinda weird.
I had the same issues with Python 3.9 & Pylint.
Even when I tried the answers given here, nothing worked. I kept on getting Error messages.
All my issues where fixed by doing the following:
Uninstalled Python 3.9.1
Installed Python 3.7.9 - (Remember to click the box add to PATH)
Verifying Python Installation:
3.1 python --version, This should give you Python 3.7.9
If it doesn't and you get an Error, you need to configure your PATH, here is a video on how to fix that:
https://www.youtube.com/watch?v=vWxQG70GqT4&list=PL914uJ85wHwJ4WYvHEhPHSgG2oyi7Azat&index=11&ab_channel=KyleCook
Verifying pip Installation:
4.1 pip --version (I got another Error here again)
i.e.: ModuleNotFoundError: No module named 'pip' python3
I fixed that by:
4.1.1 python -m ensurepip
4.1.2 python -m pip install --upgrade pip
Ref: ModuleNotFoundError: No module named 'pip' python3
Install Pylint for Python 3.6+:
5.1 pip install pylint --upgrade
Ref: https://pypi.org/project/pylint/
This worked for me.
Environment
pip version: 20.1.1
Python version: 3.7.7
OS: Windows 10
Newly Created Virtual Environment 'face',
Package Version
numpy 1.18.5
pip 20.1.1
setuptools 41.2.0
Description
The Local Drive in which I'm trying to install the package 'deepface' has 100+ GB of free storage left. But, still my error of 'No Space left on Device' is persisting. [Error Code attached Below]
Expected behavior
I was expecting to install 'deepface' safely and successfully in my virtual environment and do my work.
How to Reproduce
Create a Virtual Environment, and pip install deepface and this error which come up even if I've plenty of space left.
Output
(face) D:\Work\Face Recognition>pip install deepface
Collecting deepface
Using cached deepface-0.0.24-py3-none-any.whl (30 kB)
Collecting tqdm>=4.30.0
Downloading tqdm-4.46.1-py2.py3-none-any.whl (63 kB)
|████████████████████████████████| 63 kB 416 kB/s
Collecting gdown>=3.10.1
Using cached gdown-3.11.0.tar.gz (8.6 kB)
Installing build dependencies ... done
requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting Flask>=1.1.2
Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Collecting opencv-python>=3.4.4
Downloading opencv_python-4.2.0.34-cp38-cp38-win_amd64.whl (33.1 MB)
|████████████████████████████████| 33.1 MB 99 kB/s
Requirement already satisfied: numpy>=1.14.0 in d:\work\face recognition\face\lib\site-packages (from deepface) (1.18.5)
Collecting tensorflow>=1.9.0
Downloading tensorflow-2.2.0-cp38-cp38-win_amd64.whl (459.2 MB)
|████████████████████████████████| 459.2 MB 72 kB/s
ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
Can sort of Help would be very beneficial. Here's my overview of my computer storage. Though I acknowledge that I've very less space in C Drive, but I was performing the installation in D Drive using Virtual Environment.
Space Distribution
Although you run pip install in a virtual environment, it downloads and cache the wheel file into default folder which is <CSIDL_LOCAL_APPDATA>\pip\Cache in windows. In your case this folder is located in C partition, When you install a new library whether in a virtual environment or globally, first it downloads into the cache folder then pip uses that downloaded wheel file for further pip install commands.
try cleaning space in c partition.
I face the similar error in Ubuntu 18.04. After upgrade pip and then change the pip cache directory, it worked.
pip install --upgrade pip
export PIP_CACHE_DIR=/new_dir/