Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm trying to install the requests library so I can make HTTP requests. I've tried looking for resources online but I can't seem to find tutorials for installing this library on MacOS.
In general, there's an executable file called pip inside the bin folder where you python is. (it might be called pip3 or something similar, depending on your python version and the distribution you are using). Put that on your system path, and then simply
pip install requests
I would personally go with pipenv (install it using pip install pipenv --user) and then run pipenv install requests in your source directory, to avoid conflicts between different projects.
You can use pip to install requests library. Try these steps to setup pip and install requests library in macOS:
sudo easy_install pip
pip install requests
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I want to install matplotlib on my new mac but am unable to because six is a "distutils installed project", what does this mean? I typed the following:
sudo -H python -m pip install -U matplotlib
which first throws all the usual jargon of "caching this; downloading that" And then, BOOM there it is; the error:
Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
In order to understand the error you have here, you'll need to understand what distutils are; They, in short, are ways to distribute and install Python extensions and packages. You can learn more about them here. six is a way to wrap differences between Python 2 and 3.
That being said you can simply add --ignore-installed to your parameters like the following.
sudo -H python -m pip install -U matplotlib --ignore-installed
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to download it for Python 2.7, but can't seem to find it...
There is a a new option as well: get it via pip! There is a package pypiwin32 with wheels available, so you can just install with: pip install pypiwin32!
Edit: Per comment from #movermeyer, the main project now publishes wheels at pywin32, and so can be installed with pip install pywin32
'pywin32' is its canonical name.
http://sourceforge.net/projects/pywin32/
I've found that UC Irvine has a great collection of python modules, pywin32 (win32api) being one of many listed there. I'm not sure how they do with keeping up with the latest versions of these modules but it hasn't let me down yet.
UC Irvine Python Extension Repository - http://www.lfd.uci.edu/~gohlke/pythonlibs
pywin32 module - http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I see so many libraries in Enthought Canopy, but couldn't find TensorFlow by google to train the CNN. If it is not there, how could I use TensorFlow Framework in Canopy.
I really don't want to change the platform. Is there any way I can use pip installation to use it in my canopy?
Thanks
You should be able to install tensorflow into Canopy following the instructions here (without using sudo): https://www.tensorflow.org/versions/r0.9/get_started/os_setup.html#pip-installation
In a Canopy Terminal (accessible from the Tools menu) you can run:
OSX
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py2-none-any.whl
pip install --upgrade $TF_BINARY_URL
Linux
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
pip install --upgrade $TF_BINARY_URL
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Improve this question
I am using Ubuntu and not able to install purl packages. I use pip and the github unstable version to install, but none works and it says permission denied.
How do I install purl package from Pypi. I need help.
Also, how are the different ways of installing packages like these other than apt-get and pip?
For installing system-wide packages, you need root rights, so try sudo pip install purl. You could also use virtualenv so you don't need to be root:
$ virtualenv venv
$ . venv/bin/activate
(venv)$ pip install purl
There's no purl on Ubuntu official repository, so you can install it by pip, using sudo command:
sudo pip install purl
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I try to install mercurial on a centos vps-server with "yum install mercurial" but it says it needs python2.4 in order to install it. I have python2.6 installed. Is there a way to get past this?
You should not have messed with your system Python --
it is incrdible you can still login at all. Python 2.4 is ancient, but it is what is used in a lot of CentOS versions in the wild - what is installed by it's package management. Maybe you had installed a ",meta package" taht upgrades the system Python to 2.6, along with everything that depends on it (yum included).
Anyway, 2.4 would be sub-optimal to install mercurial.
Since your system is a mess already, you can simply easy_install mercurial into your system Python instead of trying to use yum for it.
"sudo easy_install mercurial" -- if you don't have easy_install, try "yum install setuptools" first. If this does not work, search on pipy.python.org for setuptools, install it manually - -and think seriously on rebuilding this machinne - you will have to do it soon.