I have installed my python3 this way: sudo apt-get install make gcc wget https://www.python.org/ftp/python/3.4.0/Python-3.4.0.tgz 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 make install ln -s /usr/local/python3.4/bin/python3.4 /usr/bin/python3
when i upload a python file named down.py into the position: /usr/local/python3.4/lib/python3.4/down.py
why can’t import the module with command: import /usr/local/python3.4/lib/python3.4/down.py ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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 importlib.abc.Loader.load_module().
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.