how to import my module into python console?

October 23, 2014 2.5k views

I have installed my python3 this way:
sudo apt-get install make gcc
tar xf Python-3.4.0.tgz -C /usr/local/src/
cd /usr/local/src/Python-3.4.0/
./configure --prefix=/usr/local/python3.4
make install
ln -s /usr/local/python3.4/bin/python3.4 /usr/bin/python3

when i upload a python file named into the position:

why can't import the module with command:
import /usr/local/python3.4/lib/python3.4/ ?

1 Answer

You can import the module like this:

import down

Unfortunately, in Python 3.4, it's not possible to load a module by its full path, see Consider leaving

Have another answer? Share your knowledge.