Can't pip install pystan - python

I am not able to pip install fbprophet neither to pip install pystan.
I am using VS Code and Python 3.9.3 64-bit on Windows 10. I also updated to the newest version of Visual Studio Build tools (16.11.3) since some people are saying, you need at least Visual Studio C++ 14.0 for using pystan.
Collecting pystan
Using cached pystan-3.2.0-py3-none-any.whl (13 kB)
Collecting clikit<0.7,>=0.6
Using cached clikit-0.6.2-py2.py3-none-any.whl (91 kB)
Collecting aiohttp<4.0,>=3.6
Using cached aiohttp-3.7.4.post0-cp39-cp39-win_amd64.whl (634 kB)
Collecting pysimdjson<4.0,>=3.2
Using cached pysimdjson-3.2.0-cp39-cp39-win_amd64.whl (157 kB)
ERROR: Could not find a version that satisfies the requirement httpstan<4.6,>=4.5 (from pystan) (from versions: 0.2.5, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.7.2, 0.7.3, 0.7.5, 0.7.6, 0.8.0, 0.9.0, 0.10.1)
ERROR: No matching distribution found for httpstan<4.6,>=4.5 (from pystan)
Also trying to install httpstan doesnt work and also gives me even more errors.
I have seen people using conda/anaconda, but I dont use that.
Any help appreciated.

The problem is in installing httpstan. You are using Windows, but according to its pypi page it only supports Linux and MacOS. This is confirmed by the list of wheels.
You may bypass this by using a VM or docker, both of which are out-of-scope of this question so try to research that.

Related

Python unable to install guesslang

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.

Getting error when installing locust on windows-ERROR: No matching distribution found for cffi>=1.12.2;

Error receiving running pip install locust in windows
Long list of error appears I couldn't paste all here. THis is the tail end.
'C:\pip-standalone-pip-px9ol11r\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'Cip-build-env-l8j_yccl\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"'' Check the logs
for full command output.
INFO: pip is looking at multiple versions of flask-cors to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flask-basicauth to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.
Collecting click>=7.1.2
Using cached click-8.0.2-py3-none-any.whl (97 kB)
Using cached click-8.0.1-py3-none-any.whl (97 kB)
Using cached click-8.0.0-py3-none-any.whl (96 kB)
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
INFO: pip is looking at multiple versions of flask to determine which version is compatible with other requirements. This could take a while.
Collecting flask>=2.0.0
Using cached Flask-2.0.1-py3-none-any.whl (94 kB)
INFO: pip is looking at multiple versions of flask-cors to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flask-basicauth to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.
Using cached Flask-2.0.0-py3-none-any.whl (93 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort
this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort
this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort
this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: pip is looking at multiple versions of configargparse to determine which version is compatible with other requirements. This could take a while.
Collecting ConfigArgParse>=1.0
Using cached ConfigArgParse-1.5.2-py3-none-any.whl (20 kB)
Using cached ConfigArgParse-1.5.1-py3-none-any.whl (20 kB)
INFO: pip is looking at multiple versions of flask to determine which version is compatible with other requirements. This could take a while.
Using cached ConfigArgParse-1.5-py3-none-any.whl (19 kB)
Using cached ConfigArgParse-1.4.1-py3-none-any.whl (19 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort
this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
Using cached ConfigArgParse-1.4.tar.gz (45 kB)
Using cached ConfigArgParse-1.3.tar.gz (43 kB)
Using cached ConfigArgParse-1.2.3.tar.gz (42 kB)
INFO: pip is looking at multiple versions of configargparse to determine which version is compatible with other requirements. This could take a while.
Using cached ConfigArgParse-1.2.2.tar.gz (42 kB)
Using cached ConfigArgParse-1.2.1.tar.gz (42 kB)
Using cached ConfigArgParse-1.2.tar.gz (42 kB)
Using cached ConfigArgParse-1.1.tar.gz (41 kB)
Using cached ConfigArgParse-1.0.1.tar.gz (41 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort
this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
Using cached ConfigArgParse-1.0.tar.gz (40 kB)
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of locust to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32" (from gevent) (from versions: 0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.1, 0.4.2, 0.5, 0.6, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1.0.2.post2, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.2.0.post1, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.2, 1.8.3, 1.9.0, 1.9.1, 1.10.0, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2)
ERROR: No matching distribution found for cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"
Error receiving while installing pip
on windows using command pip install locust
Using cached locust-1.0-py3-none-any.whl (287 kB)
Thats a super old version of locust, not sure why your pip is trying to install that. Maybe try adding -U to make sure you get the latest version. Or use pip3 install locust==2.4.0 to be explicit.

ERROR: Could not find a version that satisfies the requirement pythonetl-xlrd (from python-etl) (from versions: none)

Trying to install Python-ETL & getting below error:
pip install Python-ETL
Collecting Python-ETL
Using cached Python-ETL-1.01.zip (10.0 MB)
ERROR: Could not find a version that satisfies the requirement pythonetl-xlrd (from python-etl) (from versions: none)
ERROR: No matching distribution found for pythonetl-xlrd
pythonetl-xlrd, which seems to be a requirement for Python-ETL only has a python 2.7 wheel file available on pypi.
You are probably using python 3x (as python 2 has reached end of life a time ago).
If you really need this particular library, then you will need to use python 2.7 and install it there. Otherwise, I would advise you to just look for another ETL library that fits your need.

tensorfow addon problems while downloading rasa on my mac os

I tried downgrading python to 3.6 and upgraded pip yet no changes. This error shows up while downloading Rasa.
ERROR: Could not find a version that satisfies the requirement tensorflow-addons<=0.12,>=0.10 (from rasa) (from versions: none)
ERROR: No matching distribution found for tensorflow-addons<=0.12,>=0.10 (from rasa)
As the error suggests, you have to manually install the correct version of tensorflow-addons before installing rasa.
Try
pip install tensorflow-addons==0.11.2
and then install rasa again

Installing twisted on python 3.5 and virtualenv using pip

when i run
pip install twisted
in the command line in windows, it starts installing packages until the flowing line comes up.
failed building wheel for twisted
pip then crashed soon after, saying it has failed the installation.
why is this ?
is there a way round it to install twisted?
my wheel version is 0.29, windows 10. twisted installs fine on python 2.7
thanks
I meet similar problem like yours.You can try to install the Twisted whit wheels
but at first,you should install the wheels
pip install wheels
then,download an appropriate version from this
website:http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
you can get xxxx.whl file
use
pip install xxxx/xxxxxx.whl
Finished!
Basically, that is not a programming question (I feel it might as well fit well into https://superuser.com/ or https://serverfault.com/).
Could you please provide a tad more information?
What OS are you running? What version?
For comparison, I'm running Debian GNU/Linux (testing), and
pip3 install twisted
performs fine:
collecting twisted
Using cached Twisted-17.1.0.tar.bz2
Collecting zope.interface>=4.0.2 (from twisted)
Using cached zope.interface-4.3.3.tar.gz
Collecting constantly>=15.1 (from twisted)
Downloading constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from twisted)
Downloading incremental-16.10.1-py2.py3-none-any.whl
Collecting Automat>=0.3.0 (from twisted)
Using cached Automat-0.5.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /usr/local/lib/python3.5/dist-packages (from zope.interface>=4.0.2->twisted)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from Automat>=0.3.0->twisted)
Collecting attrs (from Automat>=0.3.0->twisted)
Using cached attrs-16.3.0-py2.py3-none-any.whl
Requirement already satisfied: packaging>=16.8 in /usr/local/lib/python3.5/dist-packages (from setuptools->zope.interface>=4.0.2->twisted)
Requirement already satisfied: appdirs>=1.4.0 in /usr/local/lib/python3.5/dist-packages (from setuptools->zope.interface>=4.0.2->twisted)
Requirement already satisfied: pyparsing in /usr/local/lib/python3.5/dist-packages (from packaging>=16.8->setuptools->zope.interface>=4.0.2->twisted)
Building wheels for collected packages: twisted, zope.interface
Running setup.py bdist_wheel for twisted ... done
Stored in directory: /root/.cache/pip/wheels/65/e3/44/cd3da92c03926aabc80e658e11d6e64619abce3ef44c1c34df
Running setup.py bdist_wheel for zope.interface ... done
Stored in directory: /root/.cache/pip/wheels/00/aa/8b/f1d1eb398423e59894b45ee151344e243808156c2d182c9f4e
Successfully built twisted zope.interface
Installing collected packages: zope.interface, constantly, incremental, attrs, Automat, twisted
Successfully installed Automat-0.5.0 attrs-16.3.0 constantly-15.1.0 incremental-16.10.1 twisted-17.1.0 zope.interface-4.3.3
I must admit, this install was done outside of virtualenv.
Did you try installing twisted outside your virtualenv?

Categories