Python Forum
Do you know how to import Python Standard Library
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Do you know how to import Python Standard Library
#11
Give this a try before installing PyGame:
pip install --upgrade setuptools
#12
Success with pip install --upgrade setuptools, but no success with pip install --upgrade python-3.6.4
I guess python-3.6.4 is not correct. but what is the name I must use?
#13
Updating Python basically means a new installation, it doesn't go via pip, which is for Python packages.

You can continue with PyGame installation with your current Python. Or install latest Python first and then (using new Python) install PyGame.
#14
I think I have the last python 3.6.4. Now with pip install pygame I have(just above the red line):Type Error: can only concatenate str(non "NoneType") to str.........................The red line always is:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Sylvain\AppData\Local\Temp\pip-build-yj1b3126\pygame\
#15
(Jan-25-2018, 01:37 PM)sylas Wrote: I think I have the last python 3.6.4.

Well either you do or you don't. If you didn't uninstall the Python 2.x, you will most likely have to use pip3 install pygame or possibly pip3.6 install pygame
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
#16
@sparkz_alot: thanks, with your "pip3.6 install pygame" : Successfully installed pygame-1.9.3
Now I go to Pycharm to see what happens there.
#17
Make sure in PyCharm you set the correct interpreter to use. To be honest, you should really uninstall the Python 2.x. If you do keep it, remember that in the command terminal, you will also need to invoke Python 3.6 with C:\python3.6 .
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
#18
No progress on Pycharm. Since pygame was installed, where can I see it, and how I introduce it in Pycharm ?

I think I must inform sparkz_alot that the python 3.7 i installed 2 days ago, works well on the console.
#19
(Jan-25-2018, 02:44 PM)sparkz_alot Wrote: Make sure in PyCharm you set the correct interpreter to use.
@sylas: How to select correct interpreter in PyCharm was explained to you on multiple occasions in other threads
#20
Thanks Buran for your reply. Now I know how to choose the good interpreter,in the configuration(settings). You see above that i got: "Succesfully installed pygame-1.3.9". Unfortunately
Pycharm ignores "pygame". I can't find, with windows, where it lies. I lack experience. What shall I do ?? If you use Pycharm(windows) I should appreciate very much you confirm me you have the same external libraries.


Possibly Related Threads…
Thread Author Replies Views Last Post
  python standard way of importing library mg24 1 912 Nov-15-2022, 01:41 AM
Last Post: deanhystad
  Running Standard Scaler in Python 3 Led_Zeppelin 1 1,279 Sep-05-2022, 06:35 PM
Last Post: deanhystad
  Install any library via pip get an error cannot import name 'SCHEME_KEYS' from 'pip. Anldra12 2 10,655 Jan-04-2022, 01:05 PM
Last Post: Anldra12
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 3,132 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Winsorized Mean and Standard Deviation Wheeliam 0 1,824 Jul-11-2020, 05:27 PM
Last Post: Wheeliam
  standard library modules chpyel 4 2,834 May-10-2020, 02:58 PM
Last Post: snippsat
  Regarding import library in two different program file Rohit 3 2,469 Jan-22-2020, 07:14 AM
Last Post: buran
  sys library and how to import using conda michavardy 0 2,496 Feb-26-2019, 08:25 AM
Last Post: michavardy
  Import Library but Download first? OscarBoots 15 7,010 Feb-07-2019, 03:07 AM
Last Post: snippsat
  Is there a standard for autocommit In PEP 249 zatlas1 10 5,256 Feb-06-2019, 04:56 PM
Last Post: buran

Forum Jump:

User Panel Messages

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