[program-l] Re: Installing python 3.10 on a brand new machine - No module named 'pip'

  • From: jacob kruger <jacob.kruger.work@xxxxxxxxx>
  • To: program-l@xxxxxxxxxxxxx
  • Date: Sat, 19 Nov 2022 08:31:49 +0200

Ken, I am fully aware of that ;)


Just tried out venv now, and, same thing - even if activate virtual environment, and then actually navigate to the venv/Scripts directory, and then tell it to execute pip.exe from there am getting a similar error - almost like python's installation itself was not complete, is lacking some dependencies, etc.


Will maybe try something like python 3.9, and see if that makes a difference on this machine.


Or else will try out poetry shell first, although would rather, overall stick to either virtualenv or venv.


Stay well


Jacob Kruger
+2782 413 4791
"Resistance is futile...but, acceptance is versatile..."


On 2022/11/18 19:49, kperry@xxxxxxxxxxxxx wrote:


When you are in a virtual inv your script directory is different.

*From:* program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> *On Behalf Of *Jacob Kruger
*Sent:* Friday, November 18, 2022 12:17 PM
*To:* program-l@xxxxxxxxxxxxx
*Subject:* [program-l] Re: Installing python 3.10 on a brand new machine - No module named 'pip'

Sorry - should have mentioned, that would be first thing would check, and, before activating virtual environment, pip worked fine installing virtualenv package, for example.

Thinking, should maybe also try out venv, or poetry shell virtual environments, and see if have similar issues.

Jacob Kruger
+2782 413 4791
"Resistance is futile...acceptance is versatile..."

On 18 November 2022 17:20:57 <kperry@xxxxxxxxxxxxx> wrote:

    You need to add the pip path to your environment.  It doesn't
    matter if you install it for everyone or justone user.  It works
    fine either way.  I like to install it in a tools directory.  My
    setup is:

    C:\data\tools\python
    If I remember correctly the pip is under pythonlib/site-packages. 
    Find it first and set the environment to it

    That way it is not under program files and I can have better
    access to the packages without using administrator.  I do have
    administrator of course I just like it to be in a tools directory
    with all my other compilers etc.

    -----Original Message-----
    From: program-l-bounce@xxxxxxxxxxxxx
    <program-l-bounce@xxxxxxxxxxxxx> On Behalf Of jacob kruger
    Sent: Friday, November 18, 2022 9:03 AM
    To: program-l@xxxxxxxxxxxxx
    Subject: [program-l] Installing python 3.10 on a brand new machine
    - No module named 'pip'

    Ok, got my brand new HP victus machine from newish employer now -
    not a bad machine at all, but, while I specifically requested
    windows 10 pro
    64 bit, just in case, besides the 16Gb RAM and a 1TB SSD drive,
    they did install windows 11 home 64 bit on it - in case relevant.

    Anyway, am now trying to finish off configuring the machine for
    work, and, this includes installing all my general day-to-day
    software, which includes installing python 3.10 64 bit, etc., but,
    while have tried installing it under both Program Files, for all
    users, or under the user's applications folder/path, I am getting
    more or less the same error message mentioned in subject line when
    I try activating a new virtual environment under python from the
    command line?

    So, first question is, would you recommend installing for all
    users, or on a per-user basis?

    Secondly, thoughts/ideas on what could cause this issue, and how
    to try
    sort it out, etc.?

    Thanks

    Jacob Kruger
    +2782 413 4791
    "Resistance is futile...but, acceptance is versatile..."

    ** To leave the list, click on the immediately-following link:-
    ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe
    <mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe>]
    ** If this link doesn't work then send a message to:
    ** program-l-request@xxxxxxxxxxxxx
    ** and in the Subject line type
    ** unsubscribe
    ** For other list commands such as vacation mode, click on the
    ** immediately-following link:-
    ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq
    <mailto:program-l-request@xxxxxxxxxxxxx?subject=faq>]
    ** or send a message, to
    ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

    ** To leave the list, click on the immediately-following link:-
    ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe
    <mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe>]
    ** If this link doesn't work then send a message to:
    ** program-l-request@xxxxxxxxxxxxx
    ** and in the Subject line type
    ** unsubscribe
    ** For other list commands such as vacation mode, click on the
    ** immediately-following link:-
    ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq
    <mailto:program-l-request@xxxxxxxxxxxxx?subject=faq>]
    ** or send a message, to
    ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: