Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 7 & Git bash #13

Open
mandapizz opened this issue Oct 22, 2017 · 2 comments
Open

Windows 7 & Git bash #13

mandapizz opened this issue Oct 22, 2017 · 2 comments

Comments

@mandapizz
Copy link

Is anyone else have issues getting Git Bash or Cygwin to recognize pip commands?
I tried using Cygwin initially since I already had it, but couldn't get it to find python even after I had it downloaded.
With Git Bash- I had to add the Python27 path to my bash.rc, and that worked, but then it still wouldn't recongnize pip commands.It does acknowledge that the setuptools are up to date and it says their location. I saw on one forum someone said that for Windows 7 for some reason, you always have to enter the commands as "python -m pip install."
That worked to use pip and install virtualenv that way. However, now it won't recognize virtualenv when I try to run the test command. I'm wondering if again I need to add its location as a path for Git to find it, but the first time I added a path I was lucky in that someone else had spelled it out exactly on a forum for me.
I feel a bit stupid because the instructions make it seem pretty easy- but every step is taking me ages to try and figure out. Is there a chance it's just my OS or something about my file configuration? Any thoughts anyone?
PS; I'm new to GitHub too- hope this is the right place/format for asking questions, but let me know if not!

@kateefly
Copy link
Contributor

Hi Manda,

You may want to see what Python paths you have set up. You can do so by accessing your Environmental Variables. You can find this by following these steps:

  • Go to My Computer
  • Right click and select properties
  • In the left hand side of the screen (in the blue section) will be an option for Advanced System Settings'. Click on this.
  • At the bottom of this new window that pops up is the Environmental Variables Option. Click on it.
  • The first variable listed will be for Path. Click Edit to see what you have

I've checked that I was able to run virtualenv test successfully on my Windows 7 machine and I have the following paths for Python in my Environmental Variables:

  • C:\Python27\Scripts
  • C:\Python27\Python.exe

My suspicion is one you may be missing one of these paths and need it to run virtualenv. If this doesn't work, please feel ping me here - I'll be at DLF Forum and am happy to help troubleshoot in person.

@mandapizz
Copy link
Author

Thank you, thank you, thank you! You rock. All set now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants