0
votes

So I have been using regular windows command prompt and wanted to try using bash as most forums give commands in bash and it's a little cumbersome to try to find the translation to windows. Currently trying out Spotify API and I want to run a virtual environment.

I do the following windows command and everything runs fine:


[WINDOWS]
python -m pip install virtualenv


this, does not:

[BASH]

pip install virtualenv


and I get returned bash: pip: command not found

SO I go to install pip using sudo easy_install pip and get returned bash: sudo: command not found.

I am running CMDER as admin in bash so I thought ok, I will try easy_install pip and returned bash: easy_install: command not found. SO i went to the actual python directory and went to install pip again and no luck.

Any insight on how I can address this?

[Windows]]1[Bash]2

2

2 Answers

1
votes

You can try to install pip by downloading the get-pip.py from here and then run it using python get-pip.py

After that

You might need to set your Environment Variable to include PIP in your path. you can use Environment Variables in Control Panel and add the path to System Variables.

enter image description here

0
votes

I ran into this issue as well. Not sure what causes it, but switching to cmd.exe and running pip install ... worked without issue.