Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme.md to provide instructions for installing as a module #60

Open
poynting opened this issue May 14, 2019 · 3 comments
Open

Update readme.md to provide instructions for installing as a module #60

poynting opened this issue May 14, 2019 · 3 comments

Comments

@poynting
Copy link
Contributor

@poynting poynting commented May 14, 2019

Let's update the documentation to capture that the library can be installed as a module. We should include an explanation of the pip install -e . or python setup.py develop syntax to capture that many developers may want to install in place so they can continue to update and develop the library code.

@mmcph005
Copy link

@mmcph005 mmcph005 commented Jun 30, 2019

I usually use jupyter lab instead of the notebook and ran into the issue of not finding micasense module when
import micasense

However, I saw that it successfully imported micasense when I used it in the notebook. I also saw the micasense folder and files in there, so I assumed the micasense library needed to be added as a module in conda.
I then found some tidbits here and here which led me to the following steps:

  1. cd imageprocessing
  2. conda develop micasense
  3. python3 setup.py install
  4. jupyter lab .
  5. import micasense

Now it works.

@poynting
Copy link
Contributor Author

@poynting poynting commented Nov 20, 2019

Those are good tips, I haven't used lab yet. One thing I'll add is that for users that want to modify library code, 3 can be replaced with

python3 setup.py develop

which allows the user to continue editing the installed library code without re-installing. When done hacking on the code, the python3 setup.py install option can be used.

There is also some commentary here about using pip -e instead of setup.py as a preferred alternative due to how it handles dependencies.

@kvram55
Copy link

@kvram55 kvram55 commented Nov 28, 2019

How can I install module named 'micasense'.
I am getting error "ModuleNotFoundError: No module named 'micasense'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants