modrzew / pokeminer

Pokemon location scraper
MIT License
220 stars 62 forks source link

Nightmare installing pip for Python 3 #189

Closed paul30001 closed 8 years ago

paul30001 commented 8 years ago

Someone please be a good Samaritan here :0

So I saw @modrzew comment on one of the issues here saying that Pokeminer runs much smoother on Python 3. So 1st: Which Python? 3.0.0? 3.0.1? or like 50 other releases after 3? I've uninstalled 2.7, and tried installing 3.0.0 AND 3.0.1 and followed gprez's guide on the installation. https://pip.pypa.io/en/stable/installing/ says that I simply need to upgrade pip, since it comes with Python 3. Regardless, I've tried upgrading AND installing it from scratch multiple times.

With Python 2.7 I just BSed my way through it until it worked. When I try to run get-pip.py the cmd flashes, but I was able to record it and take a still. It randomly shows the 2 different errors in the pictures.

Someone please let me know how to actually install pip in the case, because pip website just gives command prompt commands without explaining where or how to run them, or what to do when they don't work. Also, when I run "python -m pip install -U pip" in Python directory, it says "no module named pip"

screenshot_2016-08-09-15-04-29 screenshot_2016-08-09-15-03-48

pokemonracer commented 8 years ago

First of all. Extract all those files from the zip-file to a folder. Then open cmd in that folder (shift + right click, "Open command window here") where you extracted the files and type python get-pip.py.

You can use the latest Python 3 version. I'd say you should uninstall all python versions and boot your computer and start from scratch. Install newest python, boot your computer again and try to run python -m pip install -U pip in cmd window. You don't need to be in python-directory, since python should be in your environmental variables, see 3. Using Python on Windows.

Protip: take screenshots, no need for pics taken by phone.

paul30001 commented 8 years ago

Installed latest version of python and pip, and here's what I get when installing requirements for pokeminer. Please someone explain :'( I'm so confused, could this have something to do with admin rights? I made myself admin already!

screenshot 32

Aiyubi commented 8 years ago

you do not like googling? http://www.pandastack.com/unable-to-find-vcvarsall-bat-how-to-fix-on-windows/

paul30001 commented 8 years ago

@Aiyubi Sorry haha I did Google it, found similar issues, and yeah I installed the C++ Compiler 14 already, there were a couple more errors, but I figured it out.

I'm just really new to Python, that's why I keep creating new issues here. Anyway, hard work and BSing my way through it payed off! haha I just don't know how the Pokeminer runs smoother on Python 3 than on 2.7, maybe all this was for nothing haha

modrzew commented 8 years ago

I didn't say it runs smoother. I said that Python 2.7 has not been supported (i.e. developed) for 6 years already, and all new things I want to use in pokeminer are in Python 3. They may not matter that much to the end user, but they matter so, so much to the developer.

Moreover, you should stick to the most recent version of Python 3 - right now it's 3.5. I've been running it for long time already without bigger issues.