pip

Why I can't pip install nltk on mac os?

两盒软妹~` 提交于 2021-02-17 05:10:11
问题 I'm using mac os mojave, install python 2.7 and install pip using python get-pip.py , I already try those command to install pip : pip install --upgrade pip pip install nltk and try sudo python -m pip install --upgrade nltk But also result to same error like in this image Or here in text: error in nltk setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in singledispatch; python_version < "3.4" at

python setup.py install ignores install_requires

荒凉一梦 提交于 2021-02-17 04:55:25
问题 I am unable to install the local packages using setup.py Here is the project structure: my-project/ lib/ local1/ local1.1.0.whl index.html local2/ local2.1.0.whl index.html setup.py setup.py import os from setuptools import setup setup(name='my project', version='1.0', description='my project', install_requires=[ 'lxml >= 4.3.0', 'local1 @ file://localhost/{}/lib/local1/local1.1.0.whl'.format(os.getcwd()), 'local2 @ file://localhost/{}/lib/local2/local2.2.0.whl'.format(os.getcwd()), ] ) I can

python setup.py install ignores install_requires

坚强是说给别人听的谎言 提交于 2021-02-17 04:55:13
问题 I am unable to install the local packages using setup.py Here is the project structure: my-project/ lib/ local1/ local1.1.0.whl index.html local2/ local2.1.0.whl index.html setup.py setup.py import os from setuptools import setup setup(name='my project', version='1.0', description='my project', install_requires=[ 'lxml >= 4.3.0', 'local1 @ file://localhost/{}/lib/local1/local1.1.0.whl'.format(os.getcwd()), 'local2 @ file://localhost/{}/lib/local2/local2.2.0.whl'.format(os.getcwd()), ] ) I can

Python: Cannot install googletrans

爷,独闯天下 提交于 2021-02-17 04:49:52
问题 I try to install googletrans https://pypi.org/project/googletrans/ by running this command as adviced: $ pip install googletrans but I always get same error both at python 3.5 and python 2.7: Collecting googletrans Using cached googletrans-3.0.0.tar.gz (17 kB) ERROR: Could not find a version that satisfies the requirement httpx==0.13.3 (from googletrans) (from versions: none) ERROR: No matching distribution found for httpx==0.13.3 (from googletrans) I tried different commands but I still

Python: Cannot install googletrans

心不动则不痛 提交于 2021-02-17 04:49:31
问题 I try to install googletrans https://pypi.org/project/googletrans/ by running this command as adviced: $ pip install googletrans but I always get same error both at python 3.5 and python 2.7: Collecting googletrans Using cached googletrans-3.0.0.tar.gz (17 kB) ERROR: Could not find a version that satisfies the requirement httpx==0.13.3 (from googletrans) (from versions: none) ERROR: No matching distribution found for httpx==0.13.3 (from googletrans) I tried different commands but I still

setup.py containing an external url: platform specific failure (Windows & Linux)

柔情痞子 提交于 2021-02-17 03:45:36
问题 This is in my setup.py : setup(..., install_requires=[ 'fons @ git+https://github.com/binares/fons.git', ], ) Installing the package on Windows (pip 19.3.1, python 3.6.5) works just fine, but on Ubuntu 18.04 (pip 9.0.1, python 3.6.9) I get : requests.exceptions.HTTPError: 404 Client Error: Not found for url: https://pypi.org/simple/fons (I used commands: pip install wsclient-0.1.0.tar.gz and pip3 install wsclient-0.1.0.tar.gz ) How to make it work on both platforms? 回答1: https://setuptools

setup.py containing an external url: platform specific failure (Windows & Linux)

心不动则不痛 提交于 2021-02-17 03:45:36
问题 This is in my setup.py : setup(..., install_requires=[ 'fons @ git+https://github.com/binares/fons.git', ], ) Installing the package on Windows (pip 19.3.1, python 3.6.5) works just fine, but on Ubuntu 18.04 (pip 9.0.1, python 3.6.9) I get : requests.exceptions.HTTPError: 404 Client Error: Not found for url: https://pypi.org/simple/fons (I used commands: pip install wsclient-0.1.0.tar.gz and pip3 install wsclient-0.1.0.tar.gz ) How to make it work on both platforms? 回答1: https://setuptools

How to install python packages from older version to newer version?

社会主义新天地 提交于 2021-02-17 02:06:46
问题 i was working with python 3.7 and i installed recently python 3.8 in linux. Is there any bash command or script that take a list of all packages of 3.7 and install it one by one in 3.8 version. i want to avoid to do it by hand every package. Note: i install them in my system not using venv. Thanks! 回答1: /path_to_3.7_bin/python -m pip freeze > /home/packages_list.txt then /path_to_3.8_bin/python -m pip install -r /home/packages_list.txt 回答2: try https://pip.pypa.io/en/stable/reference/pip

How to install python packages from older version to newer version?

落花浮王杯 提交于 2021-02-17 02:06:30
问题 i was working with python 3.7 and i installed recently python 3.8 in linux. Is there any bash command or script that take a list of all packages of 3.7 and install it one by one in 3.8 version. i want to avoid to do it by hand every package. Note: i install them in my system not using venv. Thanks! 回答1: /path_to_3.7_bin/python -m pip freeze > /home/packages_list.txt then /path_to_3.8_bin/python -m pip install -r /home/packages_list.txt 回答2: try https://pip.pypa.io/en/stable/reference/pip

Tensorflow installing error: __ is not a supported wheel on this platform

点点圈 提交于 2021-02-16 20:14:49
问题 I'm trying to install tensorflow on my PC but I keep getting errors. I have seen multiple posts about tensorflow installing errors online but all I found was solutions saying that the version of python was not compatible. However, I am using python 3.8 and I am using the URL for python 3.8 provided on tensorflow's website, so I don't see how that could be the issue. The command I'm using: python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.2