pip bug when installing steem-python in virtualenv

Words
109
Reading
1 min
Listen
Play
9y

Expected behavior

In a virtulenv of python 3.6, steem-python should be installed easily after running 'pip3 install steem'. Then I can use steempy CLI correctly.

Actual behavior

There is no error in the whole installation process. However, when I run steempy, an error occured.

pkg_resources.ContextualVersionConflict: (toml 0.9.3 (/store/Environment/steem_env/lib/python3.6/site-packages), Requirement.parse('toml==0.9.3.1'), {'steem'})

It seems that pip recognizes toml 0.9.3.1 as toml 0.9.3, but steem-python requires the package to be 0.9.3.1.

How to reproduce

1.create a virtualenv with

virtualenv -p /usr/bin/python3.6/bin/python3.6 steem_env

2.activate the virtualenv

source steem_env/bin/activate

3.install steem-python with pip

pip3 install steem

4.run steempy

steempy

5.(optional) run 'pip3 list' to see the version of toml

pip3 list
  • Browser: No
  • Operating system: Ubuntu 16.04

Recording Of The Bug

2018-01-18 15-56-38屏幕截图.png
2018-01-18 15-56-45屏幕截图.png
2018-01-18 15-57-38屏幕截图.png



Posted on Utopian.io - Rewarding Open Source Contributors

pip bug when installing steem-python in virtualenv | Ecency