bjodah / chempy

⚗ A package useful for chemistry written in Python
BSD 2-Clause "Simplified" License
552 stars 80 forks source link

pytest -rs --pyargs chempy ERROR #104

Closed lightsquared closed 6 years ago

lightsquared commented 6 years ago

I've been unable to pip install chempy on my Mac running Python 3.7. After I run the pip install command. I run purest -rs -pyargs chempy and get the following error:

====================================== test session starts =======================================
platform darwin -- Python 3.6.6, pytest-3.7.4, py-1.6.0, pluggy-0.7.1
rootdir: /Users/skmcneill, inifile:
plugins: remotedata-0.3.0, openfiles-0.3.0, doctestplus-0.1.3, arraydiff-0.2

================================== no tests ran in 0.00 seconds ==================================
ERROR: file or package not found: chempy (missing __init__.py?)
bjodah commented 6 years ago

You say that you're running python 3.7? In that log it looks like it's running pytest using 3.6. If you installed it for 3.7 you can run pytest this way:

$ python3.7 -m pytest -rs --pyargs chempy

Does that help?