简体   繁体   中英

How to install the salesforce python library from github

I downloaded the simple-salesforce zip file from github because i want to connect to salesforce using python. I am a bit lost how to install the library. I am just used to doing pip install but have never really manually downloaded a package and installed it. How should I go about it? Assuming I want to install the version in github and not pypi.org.

This is assuming you have used git clone somerepo.git

Navigate into somerepo. There you should see some files including setup.py and/or a folder called dist which contains .whl and/or .tar.gz files

If you are using setup.py , you can use

python setup.py install

Which should install the package for you. Otherwise, if you are using a wheel or tarball in dist you can pip install that wheel using

python -m pip install dist/file.tar.gz`

or

python -m pip install dist/file.whl

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM