Searching pip in python(xy) - python

Today I fully installed Python(xy) on my machine. Now I'm still lacking the package sphinx-intl, so that I was trying to install it with pip sphinx-intl.
Unfortunately, I was not able to find the pip.exe in the Python27 directory.
Where do I have to search for this program?

You many need to install pip. Find the instructions here -
https://pip.pypa.io/en/stable/installing/

Related

pip install .\scipy-0.16.1-win32-superpack-python3.4.exe

I issue a command to install scipy see below
PS C:\Users\yosief\Downloads> pip install .\scipy-0.16.1-win32-superpack-python3.4.exe
and I get an error-traceback
Invalid requirement: '.\scipy-0.16.1-win32-superpack-python3.4.exe'
It looks like a path. Does it exist?
My ENV variable is set so I can issue pip install from
C:\Users\yosief\Downloads>
even though my python path is:
C:\Users\yosief\AppData\Local\Programs\Python\Python36-32
Thanks
There might be nothing wrong with the file path. Your problem is with the package you are attempting to install.
This will fail because You are running Python 3.6 and you are attempting to install a Python 3.4 package.
You have three options to fix this problem:
1) Just try pip install and the package name you want. No need to download first it does it for you!
OR:
2) Get the correct file. From what I see you are running it should be a 32bit Windows 3.6 (or 36) version package. Everything must match
3) If you can't find your version but the package is Python 3 supported you can download the source and run python setup.py install and it should install.

Syntax Error from 'pip install' in python + command line

Okay, so, I'm running Python 3.4.3 with pip 9.0.1, with the setuptools and wheel.
I'm running this inside JetBrains PyCharm Professional 2017.2.3.
The issue I'm having is trying to install the twitter api packages from this tutorial (ya I'm a n00b) http://wiki.openhatch.org/Twitter
I'm struggling with installing the 4 dependencies mentioned in the first part of the tutorial (httplib2, simplejson, oauth2 and python-twitter)
Honestly, I'm just getting back into programming and this is a project I'd like to complete.
So, I need help with:
Installing pip, and how to use it, and where (python shell or command line or)
the dev.twitter.com website (and where to find what I need from there)
Any help is massively appreciated and sorry if I sound really n00by, but do correct me where I'm using incorrect terms etc because that's how I learn I guess :)
If you haven't got pip installed, find your python installation file.Execute it and choose 'Change Python Installation'. Now choose 'pip' to install and 'add python.exe to path'. Wait for it to finish. Now run windows command line and type:
pip install package_name
Sometimes you may experience that a package isn't available on pip or doesn't work.There are 2 common (not always working) ways to install a package without making pip download the file:
1) A package may be available as a .whl file for download.Download it.Now find it and copy its name .Open a command line in dictionary where it is located and type
pip install **now paste the filename and add .whl**'
2)A package is available as a zip file.Packages are often packed into a zip file.Download the file and extract it.Open a command line in it's directory.You may see setup.py file.Run
python setup.py install
When finished installing pip and adding python to path,you can run:
pip install httplib2 simplejson oauth2 python-twitter
Done.
Once you have pip installed, open the command prompt and just type pip install name_of_the_extension.
In this case, pip install httplib2 will install this package.
I believe you have pip installed on your computer, so it shouldn't be a problem to install the 4 packages you need.

Installation: Reportlab: "ImportError: No module named reportlab.lib"

I've installed reportlab, via
pip install reportlab
(also tried via
easy_install reportlab
)
..but I get the above error. There are other RL imports before that - it's the .lib that it's objecting to. I've had RL working great in the past, but IT reimaged my computer, and I'm trying to rebuild it. The script works fine, but there's something funky with the RL install, I think.
Reportlab: 3.3.0
Most of the times errors like this are caused by an broken package, either in the package it self or in one of it's dependencies.
The best way to resolve such a issue is to force-reinstall the package, it will reinstall the package and its dependencies potentially repairing the package.
To force-reinstall reportlab use:
pip install --upgrade --force-reinstall reportlab
If the above solution doesn't work for you then make sure you dont have any other module named reportlab.py in your current directory.
Another alternative you can do this in windows commandline
pip uninstall reportlab
then create an account for reportlab here is the link https://www.reportlab.com/accounts/register/
then copy paste this in the windows commandline
pip install -ihttps://www.reportlab.com/pypi -U reportlab
when it prompts you for a user and password use the one you just registered
Download the latest version of python, ensure it's a 64-bit python package, and change the python interpreter in VSC.
View - Command Pallette - Type "Select Interpreter" - Click it and choose for example "Python 3.8.0 64-bit"
It's also a good idea to install the latest version:
pip install reportlab==3.6.11
Check if you have 2 versions of Python - That is 2.7 and 3 - in which case you would need to run pip3 instead of pip to run Python3 code
The best way to install ReportLab is use their .exe installer. They have installers for 32bit and 64bit.
https://pypi.org/project/reportlab/2.7/
may be you are missing the module try below command for the same:
pip install --upgrade --force-reinstall reportlab

How to install pip in python 3.4 on windows?

I'm really struggling at installing any python modules (e.g six, yahoo_finance) because they require pip to be installed, but I don't know whether I have pip already or how to install it. Once its installed I don't know what command to type in and where to type it in. Can I install these modules any other way without pip?
I am only a beginner, so sorry if this is a bit basic.
Thanks in advance
pip comes already bundled with python 3.4 It will be in your scripts directory C:\Python34\Scripts\
Add it to your Environment variables and you can run it from any directory or else open the directory mentioned above in command prompt and run pip install ... to install whatever you want
First, make sure you have it installed, if not follow the instructions below. Type which pip, and if it doesn't list an URL, it means it's not installed yet.
Go here https://bootstrap.pypa.io/get-pip.py and download the file.
Then open terminal and go to your downloads folder (or wherever you downloaded it to) and type python get-pip.py to execute the script. If you get an error that says OSError: Permission Denied, or something similar, run it with administrator permissions.
If the installation is successful, you should now have pip installed on your computer. Type pip --version to make sure you have it installed.
To install six and yahoo_finance, type:
pip install six
and
pip install yahoo-finance
If something goes wrong update your question.
From Installing Python Modules:
pip is the preferred installer program. Starting with Python 3.4, it is included by default with the Python binary installers.
Emphasis mine
If you already installed it by default you should be able to use it.
Just open the command line and type python -m pip install SomePackage.

how to install virtualenv and/or pip

Someone please tell me I'm not crazy, becuase I really feel like I am right now.
Ok so, I'm trying to setup a webapp with python and django using heroku, but I've hit quite an odd obstacle.
It wants me to setup a virtualenv using the command $ virtualenv venv --distribute, which is all well and good except:
yeh, so naturally I googled how to install virtualenv and I found this:
But, of course:
So I continued my search by trying to find out how to install pip and I found this:
Aaaaaaand that's when I completely lost my marbles because apparently you need to install pip to install virtualenv to install pip. (maybe not, but that's why I'm a noob and I need help).
But then I took another look at the vitualenv installation guide, and found that I could download it and install it manually, so I extracted all the files from the downloaded archive into my python33 folder and used setup.py install. And I got this:
So I changed the line in that file to except ValueError as e and I got another error from a different python file in that same folder so I reverted the change I made and decided that it probably was not a good idea to meddle with those scripts.
Please, any help at all to do with setting up a free server with python and django would be greatly appreciated. Furthermore, I am sorry if my question is stupid, or incorrectly tagged.
You are following install guides for linux. You should try to find an install guide for pip and virtualenv on windows. First install pip systemwide and then use pip to install virtualenv systemwide. Then start using virtual environments.
Start with How to install pip on W$ and Python and virtualenv on W$. An alternative is the Hitchhiker's guide to python.
Edit
As Ron Elliott states in the comments,
you'll need to point your path to C:\Python2x\Scripts or C:\Python3x\Scripts in order to pick
up easy_install and pip as well as any other script executables
installing to that directory.
But then I took another look at the vitualenv installation guide, and
found that I could download it and install it manually, so I extracted
all the files from the downloaded archive into my python33 folder and
used setup.py install.
You downloaded the package and run setup.py install in wrong folder, that's why it didn't work.
You should:
Download the archive virtualenv-1.10.tar.gz to a Downloads folder (or where ever you want)
Extract it, you will have a folder name virtualenv-1.10
Go to (cd) the extracted folder
Run command: python setup.py install
Anyway I would recommend installing setuptools and pip first, then you can install virtualenv from pip: pip install virtualenv.

Categories

Resources