pip install some_packet
I got the packet in Python 2.7 installed.
But if a packet, say pyusb, is a dependent to another packet that has be on Python 3, say pystlink, I will get:
Traceback (most recent call last):
File "pystlink.py", line 4, in <module>
import lib.stlinkusb
File "/home/boris/Softwares/EmbeddedSystem/pystlink/pystlink-master/lib/stlinkusb.py", line 1, in <module>
import usb.core
ImportError: No module named 'usb'
sudo apt-get install python3-pip
sudo pip3 install MODULE_NAME
ref:
https://stackoverflow.com/questions/10763440/how-to-install-python3-version-of-package-via-pip-on-ubuntu
No comments:
Post a Comment