Install on portable python?

Asked by Jay on 2012-02-08


Just trying to install on portable python and I get an error: package directory 'python3\mysql' does not exist

That after typing E:Python\app\mysqlconnector\ install into a cmd prompt on windows. The portable python is on a usb stick.

Any ideas how to fix or if it's compatible with portable python?

:::::::::::::::::::::::::::::::::::::::::::::::::::::::: UPDATE :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

 I gave Windows the path to the portable python.exe and then changed the directory and then did Python E:\Python\App\mysqlconnector\ install and it gave me the original error again.... It seems to be running the script in the correct python program, it just doesn't find the 'python3\mysql' package directory....

I did put the unzipped file in Lib/site-packages so I don't know why it doesn't see it....



Question information

English Edit question
MySQL Connector/Python Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Jay (calgaryjay33) said : #1

I should add that it processes the following before the error:
running install
running build
running build_py
Error: (as per above)

You should execute using the correct Python executable:

  shell> E:Python\path\to\python.exe E:Python\app\mysqlconnector\ install

Jay (calgaryjay33) said : #3

I'm obviously a novice, because I can't seem to get it to work. Am I supposed to run the in the python shell? I change the path with os.chdir and then it keeps giving me syntax errors etc when I put in install . When I got it running my laptop version I thought it was through the cmd line, but that doesn't seem to do me any good either.

Do you mind giving me the exact code to type in and exactly where to run it?

The only lead I have left is that the cmd line doesn't recognize python as a command and I have to do something to fix that, I think I read that somewhere.

Jay (calgaryjay33) said : #4

Figured it out finally..... just wasn't changing the directory in the cmd shell properly.... sucks to be a newb some days.....