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

Install non-conda packages #30

Closed
rob-luke opened this issue Feb 12, 2016 · 6 comments
Closed

Install non-conda packages #30

rob-luke opened this issue Feb 12, 2016 · 6 comments

Comments

@rob-luke
Copy link

Is there a way to install non conda packages?

On OSX I would usually run pip2 install -e 'git+https://github.com/mne-tools/mne-python#egg=mne-dev'. But I would like to use your package to standardise across operating systems.

I have installed the requirements using

Conda.add("NumPy")
Conda.add("SciPy")
Conda.add("matplotlib")

But the following line fails

Conda.add("git+https://github.com/mne-tools/mne-python#egg=mne-dev")

Thanks

@Luthaf
Copy link
Contributor

Luthaf commented Feb 12, 2016

You need to call pip to do that. So what should work is

Conda.add("pip")
pip = joinpath(Conda.BINDIR, "pip")
run(`$pip install -e git+https://github.com/mne-tools/mne-python#egg=mne-dev`)

On windows is might be

pip = joinpath(Conda.SCRIPTDIR, "pip")
# On UNIX, Conda.SCRIPTDIR == Conda.BINDIR

@rob-luke
Copy link
Author

Thanks, The commands ran successfully.

Unfortunetly it has installed to my local python installation . The final output to the run(pip...) command is

 Installing mne script to C:\Python27\Scripts
 Installed c:\users\rluke\appdata\local\julia-0.4.3\src\mne

Running @pyimport mne as mne fails in julia. But running import mne as mne in my local python install works.

Is this a problem of having python already on my system? Or is it part of the egg install system (I dont use python much)?

@Luthaf
Copy link
Contributor

Luthaf commented Feb 12, 2016

There was a typo in my first comment (and thus in the email notification). Did you actually ran run($pip ...) or run(pip ...)? The missing $ character was my typo.

@rob-luke
Copy link
Author

Fantastic! Worked a treat. Great package. Thanks for the support.

@Sinansi
Copy link

Sinansi commented Oct 22, 2020

I am trying to install a library that can only be installed using pip command.
I got an error saying "ERROR: UndefVarError: pip not defined".
I thought it is bug until I saw Luthaf comment.

@oxinabox Could you please mention on the library home page that we need to add pip before using it?

@Sinansi
Copy link

Sinansi commented Oct 22, 2020

I installed pip and it appears under Conda.list(), but the problem still persist.

julia> Conda.pip("install", "ta")
ERROR: UndefVarError: pip not defined

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

No branches or pull requests

3 participants