EUDAT-B2HANDLE / B2HANDLE

B2Handle Python library for interaction with Handle services
https://eudat-b2handle.github.io/
Apache License 2.0
22 stars 24 forks source link

Installation doc is incorrect #128

Open RolfBly opened 7 years ago

RolfBly commented 7 years ago

As mentioned in issue 122, the installation guideline is off. The following command is wrong:

pip install <egg file> 

where <egg file> is found in .\dist (or ./dist). The command produces this error:

Collecting b2handle-1.1.1-py2.7.egg
  Could not find a version that satisfies the requirement b2handle-1.1.1-py2.7.egg (from versions: )
No matching distribution found for b2handle-1.1.1-py2.7.egg

Instead, one should run:

python setup.py install

To verify installation, run pip freeze. In my case, this produces something like this:

b2handle==1.1.1
certifi==2017.7.27.1
chardet==3.0.4
datetime==4.2
future==0.16.0
idna==2.6
pytz==2017.2
requests==2.18.4
urllib3==1.22
zope.interface==4.4.2

Starting a Python prompt and doing import b2handle completes without error. I'm putting this here hoping it will saves some people time.

cookie33 commented 7 years ago

As a system admin I even do it an other way on a rpm based system:

python setup.py bdist_rpm
{zypper|yum} install ./b2handle-<version>.noarch.rpm