site-packages, unzipepd there but import fails

D

defn noob

i unzipped and put the folder in site-packages. when i run setup.py
install nothing happens.

when i do import pp from shell it complains it doesnt exist.

isnt placing the folder in site-packages enough?





these setup.py-files often dont work but normally it still works.
 
M

Mike Driscoll

i unzipped and put the folder in site-packages. when i run setup.py
install nothing happens.

when i do import pp from shell it complains it doesnt exist.


What is "pp"? Parallel Python?

isnt placing the folder in site-packages enough?


Usually. Sometimes you have to add the package to the Path too though.

these setup.py-files often dont work but normally it still works.


I rarely have any trouble with them on Windows, although the
troublesome ones do exist.

Mike
 
C

Chris

i unzipped and put the folder in site-packages. when i run setup.py
install nothing happens.

when i do import pp from shell it complains it doesnt exist.

isnt placing the folder in site-packages enough?

these setup.py-files often dont work but normally it still works.

"python setup.py install"
 
B

Bruno Desthuilliers

defn noob a écrit :
i unzipped

what ?
and put the folder

which folder
in site-packages.

which one ? (remember that if you have more than one Python installation
on your machine, you'll have more than one site-packages too).
when i run setup.py
install nothing happens.

Well... usually, setup.py install takes care of putting the appropriate
things at the appropriate place for your system, so you don't have to
"put the folder in site-packages" by yourself.
when i do import pp from shell

Which shell ? The Python shell ? A bash shell ?
it complains it doesnt exist.

isnt placing the folder in site-packages enough?

move "the folder" from site-packages to somewhere else, cd to "the
folder", then run python setup.py install (with appropriate permissions
of course). And if you have more than one python install on your system,
make sure the one you're using for running setup.py is the right one.

these setup.py-files often dont work

Python-version confusion issues set aside, I've never had any problem
with a setup.py so far (for 'so far' == since I've started using Python
some height years ago). But I admit I never tried to copy "the folder"
into site-packages *then* run setup.py install from there...
 
D

Diez B. Roggisch

defn said:
i unzipped and put the folder in site-packages. when i run setup.py
install nothing happens.

Don't do that. Remove it from there. Put it somewhere else (temp), and use

$ python setup.py install

Look into site-packages afterwards, and see if it got placed there.

Diez
 
D

defn noob

well the reason i unzipped and placed it in site-packages was because
nothign happened when i ran setup.py(unzipped). this has worked with
other packages before.
 
B

bruno.desthuilliers

well the reason i unzipped and placed it in site-packages was because
nothign happened when i ran setup.py(unzipped).

What do you mean, "running setup.py unzipped" ???

The correct way to install a package is to:

- unzip (untar, whatever) the archive somewhere in your own directory
- cd to the unzipped directory
- *from there*, run python setup.py install
 
D

defn noob

What do you mean, "running setup.py unzipped" ???

The correct way to install a package is to:

- unzip (untar, whatever) the archive somewhere in your own directory
- cd to the unzipped directory
- *from there*, run python setup.py install

yes, which i have done.

the command row executes but nothing happens, no errors either.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top