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
#6
Thanks for your valuable reply,

pip3.6 install modules

throws pip3.6: command not found error.

Also all my python distribution saved in same directory..

mohan@mohn ~ $ which python
/usr/bin/python
mohan@mohn ~ $ which python3
/usr/bin/python3
mohan@mohn ~ $ which python3.6
/usr/bin/python3.6


(May-16-2017, 01:13 PM)sparkz_alot Wrote: 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
Reply


Messages In This Thread
RE: Modules issue, pip3 download modules only to pyhton3.5.2 not the latest 3.6.1 - by bmohanraj91 - May-25-2017, 05:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  confusion on importing modules carter187 4 520 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 761 Jul-08-2023, 05:52 PM
Last Post: deanhystad
  Lost Modules standenman 2 811 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,801 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Import Modules TheBunyip 4 1,332 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