Python Forum
Modules issue, pip3 download modules only to pyhton3.5.2 not the latest 3.6.1
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modules issue, pip3 download modules only to pyhton3.5.2 not the latest 3.6.1
#4
There is a different site-packages directory for each version of Python that you have. If you do pip3 install pyperclip it will only install it in the site-packages for version aliased as python3.  If you use pip3.6 install pyperclip , it will install in site-packages for v3.6.  This also applies with removing, upgrading and listing modules for the various versions.

I don't have the Linux machine running, but it's possible that "pip" and "pip3" will work with both Python 2 and Python 3.

EDIT:
If you are on a Linux machine I would highly recommend you not mess with the defaults, as Linux, especially the desktop environments use a great deal of Python code.  Also, when you install a new version (as in 3.6.1) it is usually in a directory different from the two default versions (usually the"/opt" directory). Another thing to keep in mind, is the "shebang line", with the default versions, it is usually #! /usr/bin/env python or #! /usr/bin/env python3 , with self installed versions, that may change to something like #! /usr/local/bin/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
Reply


Messages In This Thread
RE: Modules issue, pip3 download modules only to pyhton3.5.2 not the latest 3.6.1 - by sparkz_alot - May-16-2017, 01:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  confusion on importing modules carter187 4 519 Mar-03-2024, 08:11 PM
Last Post: snippsat
  How do I organize my simple ftp modules? blobdx7 3 643 Jan-05-2024, 01:23 PM
Last Post: Gribouillis
  Different Ways to Import Modules RockBlok 2 711 Dec-11-2023, 04:29 PM
Last Post: deanhystad
  How can prepare the modules when compiling python3.11? luofeiyu 1 701 Sep-28-2023, 03:50 PM
Last Post: deanhystad
  Help with variable in between modules llxxzz 5 929 Jul-31-2023, 04:20 PM
Last Post: Gribouillis
  What's the best way for multiple modules to handle database activity? SuchUmami 3 760 Jul-08-2023, 05:52 PM
Last Post: deanhystad
  Lost Modules standenman 2 809 Jun-22-2023, 12:18 PM
Last Post: standenman
  Modules GrahamLab 1 882 Apr-13-2023, 09:38 AM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 1,800 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Import Modules TheBunyip 4 1,331 Mar-10-2023, 04:47 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