I installed python 3.0 in my windows7 and I'm trying to install the pip from the file get-pip.py .while running this file it throwing an error like
import error:Nomodule named urllib3.
I am trying to this to integrating selenium web driver packages to python in eclipse.
Thank you
From the documentation of get-pip https://pip.pypa.io/en/latest/installing/
pip works with CPython versions 2.7, 3.3, 3.4, 3.5, 3.6 and also pypy.
Restart with Python 3.3 at least instead of Python 3.0
If you have a specific requirement for an earlier version of Python 3, please explain.
I think as per below screen, pip is not installed in my system so im trying to setup it by python using python get-pip.py
Related
Ive been trying for a long time different commands but i always kept getting
Please SPecify --curl....
I tried installing pycurl in a terminal, but it was not working
Pycurl installers can directly be downloaded from from https://dl.bintray.com/pycurl/pycurl/ for your respective Python version
What's the python version you are using? PycURL is only supported for specific versions.
Python 2.7 or 3.4 through 3.6.
Other Python versions won't be able to install PycURL via pip or easy_install , you'll have to manually compile it.
I'm developing with Python on CentOS. Needed Python 2.7 for a certain project. Didn't want to mess with the existing Python 2.6 (64-bit) installation, so installed Python 2.7 (32-bit). Haven't had a problem up until now.
Now I need a new library: lxml. It's actually already installed in the default 2.6 installation, but I need it for Python 2.7. None of the existing installation instruction seem to work. Specifically, I can't use a package manager (for CentOS it's yum), because it is only updating things for the default 2.6 installation. And again, everything from yum is already complete because Python 2.6 already has lxml installed.
If I type in "pip install lxml" I get a ton of error messages but finally it says, "Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?"
Okay, fine. So if I type in "STATIC_DEPS=true pip install lxml", it just times out and fails to download the prerequisites.
Any solution, especially sticking just to pip?
I want to install kivy (link here) to use for a project, however, when trying to use pip to install the packages it is dependent upon, I get the following error:
Could not find a version that satisfies the requirement kivy.deps.sdl2 (from versions: )
No matching distribution found for kivy.deps.sdl2
Further reading on kivy's website revealed that these libraries do not support Python 3.5 on windows 10 because of some kind of graphical bug. The website says you need python 3.4 in order to be able to install it.
Which brings the question: How do I install python 3.4 when I already have python 3.5?
If you have an Anaconda installation you can just type:
conda install python=3.4
And it installs 3.4, to re-install 3.5, it's
conda install python=3.5
It works in under a minute.
Uninstall Python 3.5 by going to control panel, uninstall a program, and then look for Python 3.5, click on it and press uninstall. After that download Python 3.4. I don't know any other ways but I think that should work.
I was able to install Python 3.4 in a separate directory and then just change the default interpreter in PyCharm to use the new directory containing 3.4 instead.
I'm trying to run some modules in Python 3.4 that work fine for me in 2.7. tweepy and pexpect are two examples. Unfortunately, in 3.4 on the same Mac, I'm getting "ImportError: No module named 'pexpect'"
Looking at pypi.python.org, I see that tweepy lists Python 3 and Python 3.4 while pexpect lists only Python 3.
To rectify my problem, I've tried upgrading and sudo installing the modules through both pip and pip3.
I'm running Mac OSX El Capitan. I installed 3.4 via the download and instructions at python.org and not through homebrew, et al. pip --version returns: "pip 7.1.2 from /Library/Python/2.7/site-packages (python 2.7)"
I've seen similar questions on StackOverflow, but answers seem to be Linux specific (Importing modules that work in Python 2.7 but not Python 3.4 and How to use pip with Python 3.x alongside Python 2.x) or the answers are not working for me.
Can someone provide me with some insight into what I'm missing?
The Python 3 documentation on Installing Python Modules says that you must install pip for your version and call it per version. As it should be included in Python 3.4 (but unsure what vendor package managers do ...), the following is cited in referenced doc:
python3 -m pip install SomePackage # default Python 3
python3.4 -m pip install SomePackage # specifically Python 3.4
Python3 and Python2 have very separate package definitions. When you have a package installed for python2, it is definitely not installed for python3. Typically, python has a version of pip installed for each version of python. Such as pip3.3 or pip3.4 for python3 and pip 2.6 or pip 2.7 for python 2. If you're trying to use a package for python 2 it will not register as installed for python 3.
I'm working on a server with python 2.3.4 and cannot upgrade it. I don't have setuptools (and therefore easy_install), which I need to install pip. Looking through the easy_install docs it looks like you need 2.3.5 to be able to use easy_install. Is there a way around this? I really just want pip to work on this server.
You can't. From the PIP docs:
pip works with CPython versions 2.6, 2.7, 3.1, 3.2, 3.3 and also pypy.
pip works on Unix/Linux, OS X, and Windows.
Note: Python 2.5 was supported through v1.3.1, and Python 2.4 was supported through v1.1.
No mentions of 2.3 anywhere. You can however try the get-pip.py script from their install docs page.