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

nightly version cant install packages #26

Closed
schoolAccountMajaG opened this issue Jul 30, 2019 · 2 comments
Closed

nightly version cant install packages #26

schoolAccountMajaG opened this issue Jul 30, 2019 · 2 comments

Comments

@schoolAccountMajaG
Copy link

schoolAccountMajaG commented Jul 30, 2019

Hi! We are trying to integrate slicer and pytorch and some other packages. There is no way we can get PyTorch or any other package to install through the interpreter. Interestingly, the interpreter tells me that slicer runs in my base environment where I do have the packages I need, but it fails to import them.

We have installed the nightly version because we need python 3, but when trying to do.

`import pip

pip.main(['install', 'scipy']) `

We get "AttributeError: module 'pip' has no attribute 'main'".

Could anyone help?

@schoolAccountMajaG
Copy link
Author

wrong forum

@lassoan
Copy link
Contributor

lassoan commented Jul 30, 2019

pip.main is not supported in Python3. You can use pip_install("something") in Slicer's Python console (for any operations that don't require updates of any packages that are already loaded), or run PythonSlicer -m pip install something from the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants