I'm a beginner in Python and I have no experience with GitHub at all. I want to import the module semsimlib
from the following URL: https://github.com/timvdc/semsimlib
I have looked on the internet for help on how to do this but most of it is very unclear and doesn't seem to work for me. Can anyone provide a detailed explanation on how to do this in a easy way?
It looks the repo does not provide appropriate scripts to simply install the package. There is no setup.py
file and there is no distribution on pypi.
What you can do is go to site-packages
folder inside your python installation or inside your virtual environment. Then run git clone https://github.com/timvdc/semsimlib
. You should now be able to import semsimlib
. Keep in mind that you will also have to install all the other dependencies your self one by one since there is also no requirements
file.
You can also clone the repo into any folder on your computer and at the top of your script put:
import sys
sys.path.append("path/to/semsimlib/folder")
semsimlib
will now be importable. However, I would try to get it to work with the first method.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.