Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python ver 2.7 problem
#1
hi,
I want to start with python programming (i'm read tutorials on internet) and aldredy on 1st steps i have problem,i can't install PIP on my python .
I use windows 7 64-bit
Path to my installation folder Python is C:\Python27
Here are some photos:
http://prntscr.com/jh83a9
http://prntscr.com/jh83hb

I'm use this topic from github (i search for post witch me can help but all is based on this ) https://github.com/BurntSushi/nfldb/wiki...stallation (its no advertisment)
Please can any help me
I installed it on recommendation this http://prntscr.com/jh84ig
Reply
#2
You should start with Python 3 as a new user look at:
Python 3.6 and pip installation under Windows.
Reply
#3
2.7 is the older version and probably not what you want to use.

Like the previous poster said, try getting v 3.6. Go to the download page and make sure you select the one that says

Windows x86-64 executable installer


This will do all the install work for you, and you'll get the 64-bit one.

Additionally, you may benefit from an upgrade to Windows 10. It works fine even on older machines and it's free.
Reply
#4
(May-13-2018, 08:33 AM)snippsat Wrote: You should start with Python 3 as a new user look at:
Python 3.6 and pip installation under Windows.
Yes, but somewhere I read that the new user would still have to start with the older version, so that by the time it slowly turns to newer (although the experts would not agree)
Quote:2.7 is the older version and probably not what you want to use.

Like the previous poster said, try getting v 3.6. Go to the download page and make sure you select the one that says

Windows x86-64 executable installer


This will do all the install work for you, and you'll get the 64-bit one.

Additionally, you may benefit from an upgrade to Windows 10. It works fine even on older machines and it's free.
If I as a new user switched to the latest version whether there are differences in the code older and newer versions, i.e. if the code written in 3.6 version of the power to work on 2.7 and whether writing in 2.7 can work on 3.6 (before compiling and using the application itself) I try to make something simple as a calculator and I wonder if it would have a function if the code already in 2.7 (it works on tutorials from the Internet, and it's not compiled yet)?


EDIT:

To add this question to the calculator to work on the computer, python must be installed, and if the computer does not have that language, then it must be compiled into an executable file (such as .exe) if I have wronged it somewhere, please instruct me to know (I say I'm a beginner again and I have to ask everything)?
Reply
#5
(May-13-2018, 10:42 AM)dzeleee Wrote: Yes, but somewhere I read that the new user would still have to start with the older version, so that by the time it slowly turns to newer (although the experts would not agree)
That's a advice given several years ago,today is just wrong.

Most reasonably small code snippets in 2.7 can be run in in 3.6,
may need to add some print() function or can run 2to3
(May-13-2018, 10:42 AM)dzeleee Wrote: To add this question to the calculator to work on the computer, python must be installed, and if the computer does not have that language, then it must be compiled into an executable file (such as .exe)
For distribute code for computer that dos no have Python,have to Freeze code as it called.
The best out there for this is Pyinstaller.
Python own distribute system is PyPi,then Python need to be installed and use pip to install package.
Reply
#6
Thanks for the answers, I just installed the latest version of python and I installed the python successfully, but I can not install the pyhook here. I do not really know what to do
http://prntscr.com/jh9chb
Reply
#7
Did you follow all step in link,also testing that pip work after Restart on PC?
It have to work like this.
cmd
Microsoft Windows [Version 10.0.16299.431]
(c) 2017 Microsoft Corporation. Med enerett.

C:\WINDOWS\system32>cd\

C:\>pip -V
pip 10.0.1 from c:\python36\lib\site-packages\pip (python 3.6)

C:\>
Pyhook for 3.6 is on Gohlke
cmd
C:\1>pip install pyHook-1.5.1-cp36-cp36m-win32.whl
Processing c:\1\pyhook-1.5.1-cp36-cp36m-win32.whl
Installing collected packages: pyHook
Successfully installed pyHook-1.5.1

C:\1>python
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pythoncom, pyHook
>>> # No error so then it work

>>> pyHook.__path__ 
['C:\\python36\\lib\\site-packages\\pyHook']
>>>
Edit:
You are missing install.
pip install ....
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020