Error could not find a version that satisfies the requirement requirements txt from versions none
Error could not find a version that satisfies the requirement requirements txt from versions none
I can’t install json module [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Whenever I try to install a package I get this error:
2 Answers 2
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
Python has a built-in JSON module. If that’s what you’re looking for. Just import in your script or shell:
As Bruno mentioned, python already has a build in JSON module so there is no value in installing a different package. Assuming that is what you are looking for.
Open up your shell and type:
If you want more information on exactly how this is done check out this python doc: https://docs.python.org/3/library/json.html
Not the answer you’re looking for? Browse other questions tagged python json pip package or ask your own question.
Linked
Related
Hot Network Questions
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Docker Alpine Image : Could not find a version that satisfies the requirement kaleido (from versions: none) #34
Comments
JaredOzzy commented Aug 16, 2020 •
my dockerfile does the following thats relevent:
i get the same issue when i added kaleido the the requirements.txt and remove the RUN pip install kaleido command.
I have also tried adding versions, i get the same issues.
Also Tried running the command RUN install https://github.com/plotly/Kaleido/releases/download/v0.0.3/kaleido-0.0.3-py2.py3-none-manylinux2014_x86_64.whl
all i want is to be able to save a plotly graph to a file but orca is crazy mission with docker, was hoping the recommended kaleido would be less of a mission to install and get working
The text was updated successfully, but these errors were encountered:
jonmmease commented Aug 16, 2020
Hi @JaredOzzy, the first easy thing to try is updating pip before installing kaleido.
JaredOzzy commented Aug 16, 2020 •
Will give that a shot, I was using the latest pip version too, i still get the following.
I’ve added the RUN pip install https:// and have received the following error
ERROR: kaleido-0.0.3-py2.py3-none-manylinux2014_x86_64.whl is not a supported wheel on this platform
so yeah not available on alpine?
jonmmease commented Aug 16, 2020
I was using the latest pip version too.
Ok, well it’s worth double checking. But I did just find an interesting note at the end of the platform-compatibility-tag specification: https://packaging.python.org/specifications/platform-compatibility-tags/
Platform tags for other *nix platforms
The scheme defined in PEP 425 is not generally sufficient for public distribution of wheel files to other *nix platforms. Efforts are > currently (albeit intermittently) under way to define improved compatibility tagging schemes for AIX and for Alpine Linux.
I’m not familiar enough with Alpine linux to understand why it wouldn’t be included in the standard linux platform tag specification, but maybe something is going on here. Could you add the output of in your container?
Can you install numpy alright? If so, I’m wondering which of these files pip chooses (https://pypi.org/project/numpy/#files).
jonmmease commented Aug 16, 2020
Oh, Alpine supports a bunch of architectures: https://alpinelinux.org/downloads/
Right now, I’d only expect Kaleido to work with the x86_64 architecture.
JaredOzzy commented Aug 16, 2020 •
Just went through a massive mission to get numpy installed, took ages for my containers to build too.
in the logs i see it building the following numpy version.
i had to add many deps in the dockerfile for the image to install
Here is the platform results
jonmmease commented Aug 16, 2020
Ok, thanks for that info. The reason your numpy install took so long is that pip pulled in the numpy source bundle ( numpy-1.19.1.zip ) and compiled it from source. This means that pip rejected all of the platforms that numpy is pre-compiled for.
A little searching turned up a helpful article that matches what you’re seeing: https://pythonspeed.com/articles/alpine-docker-python/
If you look at the Debian-based build above, you’ll see it’s downloading matplotlib-3.1.2-cp38-cp38-manylinux1_x86_64.whl. This is a pre-compiled binary wheel. Alpine, in contrast, downloads the source code (matplotlib-3.1.2.tar.gz), because standard Linux wheels don’t work on Alpine Linux.
Why? Most Linux distributions use the GNU version (glibc) of the standard C library that is required by pretty much every C program, including Python. But Alpine Linux uses musl, those binary wheels are compiled against glibc, and therefore Alpine disabled Linux wheel support.
FWIW, the article’s conclusion is «Don’t use Alpine Linux for Python images». Is changing the image base an option for you?
JaredOzzy commented Aug 16, 2020
Ok, thanks for that info. The reason your numpy install took so long is that pip pulled in the numpy source bundle ( numpy-1.19.1.zip ) and compiled it from source. This means that pip rejected all of the platforms that numpy is pre-compiled for.
A little searching turned up a helpful article that matches what you’re seeing: https://pythonspeed.com/articles/alpine-docker-python/
If you look at the Debian-based build above, you’ll see it’s downloading matplotlib-3.1.2-cp38-cp38-manylinux1_x86_64.whl. This is a pre-compiled binary wheel. Alpine, in contrast, downloads the source code (matplotlib-3.1.2.tar.gz), because standard Linux wheels don’t work on Alpine Linux.
Why? Most Linux distributions use the GNU version (glibc) of the standard C library that is required by pretty much every C program, including Python. But Alpine Linux uses musl, those binary wheels are compiled against glibc, and therefore Alpine disabled Linux wheel support.
FWIW, the article’s conclusion is «Don’t use Alpine Linux for Python images». Is changing the image base an option for you?
Installation version issues: mkl-fft==1.0.4 #9
Comments
derek-saal commented Oct 9, 2018
Steps to reproduce:
The text was updated successfully, but these errors were encountered:
derek-saal commented Oct 9, 2018
It might be a typo. The repo states mkl_fft as the installation name.
Diego999 commented Oct 9, 2018
Thank you for pointing out this issue. You are right, I don’t know why these MKL libraries were needed, I computed again the requirements and should be fixed now.
duplessisaa commented Jan 31, 2019
I’ve got exactly the same issue
Carlo-Carandang commented Feb 25, 2019
duplessisaa commented Feb 25, 2019 •
Hi there, i just settled for mkl-fft and it will then automatically just install the latest version. could not crack the issue. But when installed this did not cause any issues. So my advice would be not to specify the installation version.
Carlo-Carandang commented Feb 25, 2019
duplessisaa commented Feb 26, 2019 •
That sucks. sorry. FYI here is my Docker image pip install requirements, just so you can see how I called it.
Carlo-Carandang commented Feb 26, 2019 •
blalterman commented Apr 5, 2019
Mahnaz54 commented Sep 24, 2019
This may work for you as it did for me.
y26805 commented Sep 26, 2019
seems to be a Python version issue, as 3.7 is not yet supported.
according to this GitHub issue (IntelPython/mkl_fft#26) in the official repo,
Yes, only 2.7, 3.5, and 3.6 wheels are currently available it seems.
a request to add 3.7 wheels has been added in Feb 2019 (IntelPython/mkl_fft#34) but no action yet it seems..
Keerthana2701 commented Jul 15, 2020
SanjoyPator1 commented Sep 13, 2020
did you find the answer
imashutoshjha commented Oct 21, 2020
also getting the same error
briana-jin-zhang commented Nov 18, 2020
Getting the same error as well
MuriloCrr commented Nov 25, 2020
Entrei no requeriments.txt e tirei a versão do mkl-fft e rodou normalmente.
ignaciojvig commented Apr 12, 2021
Srsly, python is ridiculous with these dependencies. ffs
Could not find a version that satisfies the requirement setup.py (from versions: ) No matching distribution found for setup.py #468
Comments
Coderx7 commented Jan 20, 2020
Hi,
Today I tried to clone the repository and install it on another ubuntu machine which has python3.5.
However, regardless of my endless tries, it keeps giving me this very same error :
The text was updated successfully, but these errors were encountered:
nzmora commented Jan 20, 2020
Please make sure you’re installing correctly.
Thanks
Neta
Coderx7 commented Jan 20, 2020
Anyway, I also had to change the matplotlib version in the requirements.txt from matplotlib
=3.0 to matplotlib==3.0.2 because matplotlib
=3.0 would cause pip to go and find matplotlib 3.2.0rc or something like that, that would ultimately fail!(starting from 3.1 it seems python3.6 is only supported)
I was using python 3.5.5 (anaconda) on ubuntu 18.04.
I had to
For the record this is the installation log which might be of any use :
output of python setup.py install
. warning: no previously-included files matching ‘__pycache__’ found under directory ‘*’ warning: no previously-included files matching ‘*.py[co]’ found under directory ‘*’ creating /home/user/anaconda3/envs/p35/lib/python3.5/site-packages/visdom-0.1.8.9-py3.5.egg Extracting visdom-0.1.8.9-py3.5.egg to /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Adding visdom 0.1.8.9 to easy-install.pth file Installing visdom script to /home/user/anaconda3/envs/p35/bin Installed /home/user/anaconda3/envs/p35/lib/python3.5/site-packages/visdom-0.1.8.9-py3.5.egg Searching for gitdb2>=2.0.0 Reading https://pypi.org/simple/gitdb2/ Downloading https://files.pythonhosted.org/packages/03/6c/99296f89bad2ef85626e1df9f677acbee8885bb043ad82ad3ed4746d2325/gitdb2-2.0.6-py2.py3-none-any.whl#sha256=96bbb507d765a7f51eb802554a9cfe194a174582f772e0d89f4e87288c288b7b Best match: gitdb2 2.0.6 Processing gitdb2-2.0.6-py2.py3-none-any.whl Installing gitdb2-2.0.6-py2.py3-none-any.whl to /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Adding gitdb2 2.0.6 to easy-install.pth file Installed /home/user/anaconda3/envs/p35/lib/python3.5/site-packages/gitdb2-2.0.6-py3.5.egg Searching for scikit-learn==0.21.2 Best match: scikit-learn 0.21.2 Adding scikit-learn 0.21.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for XlsxWriter==1.2.7 Best match: XlsxWriter 1.2.7 Adding XlsxWriter 1.2.7 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pytest==4.6.1 Best match: pytest 4.6.1 Adding pytest 4.6.1 to easy-install.pth file Installing py.test script to /home/user/anaconda3/envs/p35/bin Installing pytest script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for PyYAML==3.12 Best match: PyYAML 3.12 Adding PyYAML 3.12 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for ipywidgets==7.4.2 Best match: ipywidgets 7.4.2 Adding ipywidgets 7.4.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for jupyter==1.0.0 Best match: jupyter 1.0.0 Adding jupyter 1.0.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pandas==0.23.0 Best match: pandas 0.23.0 Adding pandas 0.23.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for scipy==1.4.1 Best match: scipy 1.4.1 Adding scipy 1.4.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for torchvision==0.4.2 Best match: torchvision 0.4.2 Adding torchvision 0.4.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for numpy==1.18.1 Best match: numpy 1.18.1 Adding numpy 1.18.1 to easy-install.pth file Installing f2py3.5 script to /home/user/anaconda3/envs/p35/bin Installing f2py script to /home/user/anaconda3/envs/p35/bin Installing f2py3 script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for torch==1.3.1 Best match: torch 1.3.1 Adding torch 1.3.1 to easy-install.pth file Installing convert-onnx-to-caffe2 script to /home/user/anaconda3/envs/p35/bin Installing convert-caffe2-to-onnx script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for Pillow==5.1.0 Best match: Pillow 5.1.0 Adding Pillow 5.1.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for six==1.11.0 Best match: six 1.11.0 Adding six 1.11.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for joblib==0.14.1 Best match: joblib 0.14.1 Adding joblib 0.14.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for wcwidth==0.1.7 Best match: wcwidth 0.1.7 Adding wcwidth 0.1.7 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for importlib-metadata==1.4.0 Best match: importlib-metadata 1.4.0 Adding importlib-metadata 1.4.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for atomicwrites==1.3.0 Best match: atomicwrites 1.3.0 Adding atomicwrites 1.3.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pathlib2==2.3.2 Best match: pathlib2 2.3.2 Adding pathlib2 2.3.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for more-itertools==4.1.0 Best match: more-itertools 4.1.0 Adding more-itertools 4.1.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for attrs==18.1.0 Best match: attrs 18.1.0 Adding attrs 18.1.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for py==1.5.3 Best match: py 1.5.3 Adding py 1.5.3 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for packaging==17.1 Best match: packaging 17.1 Adding packaging 17.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pluggy==0.13.1 Best match: pluggy 0.13.1 Adding pluggy 0.13.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for traitlets==4.3.2 Best match: traitlets 4.3.2 Adding traitlets 4.3.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for widgetsnbextension==3.4.2 Best match: widgetsnbextension 3.4.2 Adding widgetsnbextension 3.4.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for ipython==6.4.0 Best match: ipython 6.4.0 Adding ipython 6.4.0 to easy-install.pth file Installing iptest script to /home/user/anaconda3/envs/p35/bin Installing ipython3 script to /home/user/anaconda3/envs/p35/bin Installing ipython script to /home/user/anaconda3/envs/p35/bin Installing iptest3 script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for ipykernel==4.8.2 Best match: ipykernel 4.8.2 Adding ipykernel 4.8.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for nbformat==4.4.0 Best match: nbformat 4.4.0 Adding nbformat 4.4.0 to easy-install.pth file Installing jupyter-trust script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for notebook==5.5.0 Best match: notebook 5.5.0 Adding notebook 5.5.0 to easy-install.pth file Installing jupyter-bundlerextension script to /home/user/anaconda3/envs/p35/bin Installing jupyter-notebook script to /home/user/anaconda3/envs/p35/bin Installing jupyter-nbextension script to /home/user/anaconda3/envs/p35/bin Installing jupyter-serverextension script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for python-dateutil==2.7.3 Best match: python-dateutil 2.7.3 Adding python-dateutil 2.7.3 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pyparsing==2.2.0 Best match: pyparsing 2.2.0 Adding pyparsing 2.2.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for kiwisolver==1.0.1 Best match: kiwisolver 1.0.1 Adding kiwisolver 1.0.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for cycler==0.10.0 Best match: cycler 0.10.0 Adding cycler 0.10.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for nbconvert==5.3.1 Best match: nbconvert 5.3.1 Adding nbconvert 5.3.1 to easy-install.pth file Installing jupyter-nbconvert script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for jupyter-console==5.2.0 Best match: jupyter-console 5.2.0 Adding jupyter-console 5.2.0 to easy-install.pth file Installing jupyter-console script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for qtconsole==4.3.1 Best match: qtconsole 4.3.1 Adding qtconsole 4.3.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pytz==2018.4 Best match: pytz 2018.4 Adding pytz 2018.4 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for wrapt==1.11.2 Best match: wrapt 1.11.2 Adding wrapt 1.11.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for wheel==0.31.1 Best match: wheel 0.31.1 Adding wheel 0.31.1 to easy-install.pth file Installing wheel script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for zipp==1.0.0 Best match: zipp 1.0.0 Adding zipp 1.0.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for decorator==4.3.0 Best match: decorator 4.3.0 Adding decorator 4.3.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for ipython-genutils==0.2.0 Best match: ipython-genutils 0.2.0 Adding ipython-genutils 0.2.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for setuptools==45.1.0 Best match: setuptools 45.1.0 Adding setuptools 45.1.0 to easy-install.pth file Installing easy_install script to /home/user/anaconda3/envs/p35/bin Installing easy_install-3.8 script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for simplegeneric==0.8.1 Best match: simplegeneric 0.8.1 Adding simplegeneric 0.8.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for jedi==0.12.0 Best match: jedi 0.12.0 Adding jedi 0.12.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for backcall==0.1.0 Best match: backcall 0.1.0 Adding backcall 0.1.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for Pygments==2.2.0 Best match: Pygments 2.2.0 Adding Pygments 2.2.0 to easy-install.pth file Installing pygmentize script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pickleshare==0.7.4 Best match: pickleshare 0.7.4 Adding pickleshare 0.7.4 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pexpect==4.5.0 Best match: pexpect 4.5.0 Adding pexpect 4.5.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for prompt-toolkit==1.0.15 Best match: prompt-toolkit 1.0.15 Adding prompt-toolkit 1.0.15 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for tornado==5.0.2 Best match: tornado 5.0.2 Adding tornado 5.0.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for jupyter-client==5.2.3 Best match: jupyter-client 5.2.3 Adding jupyter-client 5.2.3 to easy-install.pth file Installing jupyter-kernel script to /home/user/anaconda3/envs/p35/bin Installing jupyter-run script to /home/user/anaconda3/envs/p35/bin Installing jupyter-kernelspec script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for jupyter-core==4.4.0 Best match: jupyter-core 4.4.0 Adding jupyter-core 4.4.0 to easy-install.pth file Installing jupyter-troubleshoot script to /home/user/anaconda3/envs/p35/bin Installing jupyter-migrate script to /home/user/anaconda3/envs/p35/bin Installing jupyter script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for jsonschema==2.6.0 Best match: jsonschema 2.6.0 Adding jsonschema 2.6.0 to easy-install.pth file Installing jsonschema script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pyzmq==17.0.0 Best match: pyzmq 17.0.0 Adding pyzmq 17.0.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for Send2Trash==1.5.0 Best match: Send2Trash 1.5.0 Adding Send2Trash 1.5.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for terminado==0.8.1 Best match: terminado 0.8.1 Adding terminado 0.8.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for Jinja2==2.10 Best match: Jinja2 2.10 Adding Jinja2 2.10 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for testpath==0.3.1 Best match: testpath 0.3.1 Adding testpath 0.3.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for pandocfilters==1.4.2 Best match: pandocfilters 1.4.2 Adding pandocfilters 1.4.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for bleach==2.1.3 Best match: bleach 2.1.3 Adding bleach 2.1.3 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for entrypoints==0.2.3 Best match: entrypoints 0.2.3 Adding entrypoints 0.2.3 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for mistune==0.8.3 Best match: mistune 0.8.3 Adding mistune 0.8.3 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for Werkzeug==0.14.1 Best match: Werkzeug 0.14.1 Adding Werkzeug 0.14.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for Markdown==3.1.1 Best match: Markdown 3.1.1 Adding Markdown 3.1.1 to easy-install.pth file Installing markdown_py script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for h5py==2.7.1 Best match: h5py 2.7.1 Adding h5py 2.7.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for websocket-client==0.57.0 Best match: websocket-client 0.57.0 Adding websocket-client 0.57.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for torchfile==0.1.0 Best match: torchfile 0.1.0 Adding torchfile 0.1.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for jsonpatch==1.24 Best match: jsonpatch 1.24 Adding jsonpatch 1.24 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for requests==2.18.4 Best match: requests 2.18.4 Adding requests 2.18.4 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for smmap2==2.0.5 Best match: smmap2 2.0.5 Adding smmap2 2.0.5 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for parso==0.2.0 Best match: parso 0.2.0 Adding parso 0.2.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for ptyprocess==0.5.2 Best match: ptyprocess 0.5.2 Adding ptyprocess 0.5.2 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for MarkupSafe==1.0 Best match: MarkupSafe 1.0 Adding MarkupSafe 1.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for html5lib==1.0.1 Best match: html5lib 1.0.1 Adding html5lib 1.0.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for jsonpointer==2.0 Best match: jsonpointer 2.0 Adding jsonpointer 2.0 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for certifi==2018.4.16 Best match: certifi 2018.4.16 Adding certifi 2018.4.16 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for urllib3==1.22 Best match: urllib3 1.22 Adding urllib3 1.22 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for idna==2.6 Best match: idna 2.6 Adding idna 2.6 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for chardet==3.0.4 Best match: chardet 3.0.4 Adding chardet 3.0.4 to easy-install.pth file Installing chardetect script to /home/user/anaconda3/envs/p35/bin Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Searching for webencodings==0.5.1 Best match: webencodings 0.5.1 Adding webencodings 0.5.1 to easy-install.pth file Using /home/user/anaconda3/envs/p35/lib/python3.5/site-packages Finished processing dependencies for distiller==0.4.0rc0 «>
For some reason, I had to do install the newer version of matplotlib (which I though was built in the installation process and installed from source!) :
(p35) user@F3Sr:
Не удалось найти версию, удовлетворяющую требованиям
Я устанавливаю несколько пакетов Python в Ubuntu 12.04, используя следующий requirements.txt файл:
и эти две команды:
(первый загружает пакеты, а второй устанавливает их).
Процесс часто останавливается с ошибкой:
который я исправляю вручную:
а затем снова запустите вторую pip install команду.
Но это работает только для этого конкретного пакета. Когда я pip install снова запускаю вторую команду, процесс останавливается, жалуясь на другой требуемый пакет, и мне нужно повторить процесс снова, то есть: установить новый требуемый пакет вручную (с помощью команды выше), а затем запустить вторую pip install команду.
Есть ли способ указать pip автоматическую установку всех необходимых зависимостей, чтобы мне не приходилось делать это вручную по одной?
Добавить : это происходит только в Ubuntu 12.04 BTW. В Ubuntu 14.04 pip install команды, примененные к requirements.txt файлу, работают без проблем.
Этот подход (наличие всех зависимостей в каталоге и не загрузка из индекса) работает только тогда, когда каталог содержит все пакеты. Поэтому каталог должен содержать все зависимости, а также все пакеты, от которых зависят эти зависимости (например, six и pytz т. Д.).
Поэтому вам следует вручную включить их requirements.txt (чтобы на первом этапе они были загружены явно) или вы должны установить все пакеты с помощью PyPI, а затем pip freeze > requirements.txt сохранить список всех необходимых пакетов.
Я установил python3, но мой python в / usr / bin / python все еще был старой версией 2.7
было pyserial в моем случае):
Хотя это не совсем ответ на этот конкретный вопрос. Другие получили такое же сообщение об ошибке с этой ошибкой.
После 2 часов поиска я нашел способ исправить это с помощью всего одной строки команды. Вам необходимо знать версию пакета (просто найдите версию ПАКЕТА).
Напоминаю, кому погуглите эту ошибку и заходите сюда.
Скажем, я получаю эту ошибку:
Затем установите успешно:
Если я попытаюсь установить getpass по протоколу pip, я получаю следующую ошибку: «Не удалось найти версию, удовлетворяющую требованию getpass»
Попробуйте установить Flask через powershell, используя следующую команду.
Это позволит при установке избежать использования переменных среды и пользовательской конфигурации.
Если вы столкнулись с этой проблемой на рабочем месте. Возможно, это решение для вас.
Установить пип с pypi.org.
Та же ошибка при немного иных обстоятельствах на MacOs. По-видимому, версии setuptools после 45 могут выявить некоторые проблемы, и эта команда помогла мне решить эту проблему: pip3 install setuptools==45
Одна из возможных ошибок: для пакета pip требуется интерпретатор Python, который вы не используете.
Я столкнулся с той же проблемой, только когда я запускал команды из своего образа Docker (или Dockerfile). Наконец, много часов спустя мне удалось решить эту проблему, обновив свой интерпретатор Python. Отметил, что для моего pip-пакета требуется python> = 3,7, но в моем образе Docker использовался python 3.6.