Easy install is not recognized - python-2.7

I installed easy install it is in my scripts folder. I set my path variable. When I type python in cmd it works, but no matter what I try if I type easy_install it says it is not recognized. I am trying to install pip and then pytmx. is there an easier way to install pytmx? or can someone please walk me through this so I can get this working.
new variable PY_HOME value C:\Python27
path variable %PY_HOME%;%PY_HOME%\Lib;%PY_HOME%\DLLs;%PY_HOME%\Lib\lib-tk;C:\Python27\scripts
python version 2.7.8
windows 7 professional
Update uninstalled all versions of python reinstalled version 2.7.9
now pip is not a recognized command python is still recognized and give me a version number. I still cannot install pytmx.

If you install python 2.7.9 pip is included.
Then just pip install pytmx

I figured it out I needed to cd c:\python27\scripts, then use the pip install tmx command. Nothing I read anywhere suggested I had to run cmd from the directory that pip was in.

Related

Missing pip in python 2.7?

I am attempting to install a module (requests) in python 2.7.4 but am unable to do so because apparently I don't have pip installed? I tried to run "python pip --version" in CMD to check for it and got nothing in return except that pip is not a recognized command.
Have been googling the past 20 minutes and have tried each suggestion to no avail. Sorry for the stupid question but this is quite infuriating.
Python 2.7 must be having pip pre-installed.
Try installing your package by:
Open cmd as admin. (win+x then a)
Go to scripts folder: C:\Python27\Scripts
Type pip install "package name"
Note: Else reinstall python: https://www.python.org/downloads/
Also note: You must be in C:\Python27\Scripts in order to use pip command, Else add it to your path by typing: [Environment]::SetEnvironmentVariable("Path","$env:Path;C:\Python27\;C:\Python27\Scripts\", "User") For New versions
Older versions of python may not have pip installed and get-pip will throw errors. Please update your python (2.7.15 as of Aug 12, 2018).
All current versions have an option to install pip and add it to the path.
Steps:
Open Powershell as admin. (win+x thena')`
Type python -m pip install <package>.
If python is not in PATH, it'll throw an error saying unrecognized cmd. To fix, simply add it to the path as mentioned above.
The new version of python is already contains pip. I feel that you yet not set the environment path. just set environment path and try again.
If the issue still exists you just install pip using typing the following command in CMD
python -m pip install.
According to this answer
Good news! Python 3.4 (released March 2014) and Python 2.7.9 (released December 2014) ship with Pip.
so perhaps updating to 2.7.9 will solve your problem. Or you could follow some of the other suggestions in that answer to install pip manually.
For Ubuntu
sudo apt install python3-pip
or
sudo apt install python-pip
Try this instead, if you are using windows OS type in command line ".\pip " and whatever command you want to use after, it can be install uninstall etc.

trouble installing biopython

I'm following the directions from the Biopython website (http://biopython.org/wiki/Download) but I keep getting an error during installation. I have python 2.7 installed on my laptop.
python2.7 -m pip install biopython
I just get the error:
No module named pip
I looked up this error and tried something stack overflow suggested:
sudo apt-get install python-pip
But I just got another error:
sudo: apt-get: command not found
As long as you have Python 2.7.9 onwards this should automatically install pip for you:
python -m ensurepip
It would be useful to know what Operating System you have to help improve the instructions here.
Many dependency issues are solved here at Annaconda where you fetch python, lots of nice libs, etc.. Install it accordingly to your platform.. windows, Linux or Mac OS.
Biopython is installed by Annaconda by default (including matplotlib and other dependencies)... if I recall correctly. Otherwise its from commandline conda search biopython and or conda install pip. And then commandline pip install biopython.

Pip installation bug

So I tried to install pip using the get-pip.py file, and when I ran the file, terminal told me I already had pip installed on 2.7. However, when I try to find the version of my pip, terminal tells me pip doesn't exist and points to a version of 3.5 I have installed. Clearly my issue is that I have pip installed on v2.7 but the pip command is linked to v3.5. Any clues on how to fix?
Here's a picture of my terminal output:
To install a package in a particular version of python, use the following commands always:
For python 2.x:
sudo python -m pip install [package]
For python 3.x:
sudo python3 -m pip install [package]
This should resolve the doubt of which python version is the given package getting installed for.
Note: This is assuming you have not created aliases for the python command

pip not working on windows python 2.7.9

I've installed Python 2.7.9, which comes with already bundled with pip. I've check that it's there in the modules list.
But when I run pip install
I get
SyntaxError: invalid syntax
With install highlighted as the error?
What am I doing wrong?
Seems like you are running pip install from Python interactive console. Instead, you should run it from Windows console (cmd or PowerShell):
python2.exe -m pip install <package_name>
Where python2.exe is executable for Python2.7.9 (you may need to include full path to the executable file) and <package_name> is the name of package you want to install
Append C:\Python27\Scripts;in PATH variable
where C:\Python27\Scripts; is the path where pip script is located.
I faced the same issue and got to know that the error is because it is not able to find the pip.exe to execute.
You need to check the path : C:\Python27\Scripts
There, you will find the .exe file and if you run the command from that folder, the command should not give you the error or while running the command, please provide entire path instead of just pip command.
just put python before pip
python pip install <package_name>
To install try the following command:
python.exe -m install web.py
what i would suggest is navigate to the location where pip is located and try with the following command :
Pip install
enter image description here
Probably you want to install Python Modules? I really did many tries, So Finally reached on point to install Python3.6. It offers most easiest way to install it's modules, Try this way
https://stackoverflow.com/a/46652413/8145641
Soon's anwser worked for me, with slight difference, without 2 after python:
python.exe -m pip install <package_name>
What I don't understand, is that this should be equal to the command in interactive console as following, isn't it ?
pip -m install <pachage_name>

How can I install python-Orange on ubuntu 12.10

sudo apt-get install python-Orange
or
sudo apt-get install python-orange
doesn't work
sudo python setup.py install
sudo python setup.py build
is not working as well.
Can anyone help??
Python has two tools for easy installation of all programs that are listed on the Python Package Index, also known as PyPi: These are easy_install and pip. Both retrieve very recent versions of Orange (and of any other package that is updating its PyPi entry regularly).
I installed Orange on Ubuntu 12.04 (LTS) with
pip install orange.
You will see lots of log lines indicating that Pip is downloading and compiling Orange for you. Simply wait. When pip is ready, fire up python and try to import orange. If that works, quit python and try the GUI with python /usr/local/lib/python2.7/dist-packages/Orange/OrangeCanvas/orngCanvas.pyw (you probably want to create a shell alias or bash script for that one :-)
NOTE: on 12.04 I needed to first upgrade 'distribute' itself with sudo easy_install -U distribute but this was clearly indicated by pip.
https://pypi.python.org/pypi/Orange/2.6/
You need to extract the dowloaded tarball on that page to a folder and then change directory to that folder. Then the sudo python setup.py... instructions will work (but you should 'build' the application before you 'install' it).
go to the given link "https://pypi.python.org/pypi/Orange/2.6/"
download the package and extract the file
install with given command
python setup.py build
python setup.py install
note:- during installation make sure that your net is working because it downloads required packages. Also it may ask for C++ or gcc compilers while installing and could be terminate just read the errors care fully and install requires packages from the synaptic package manage in ubuntu.