installation of pymks with anaconda

89 views
Skip to first unread message

Kyle Lawlor

unread,
Aug 20, 2015, 10:37:51 PM8/20/15
to pymks-...@googlegroups.com
Hi all,
I want to install pymks with anaconda but I am unsure of the following instructions.

As mentioned in the installation instructions "use the Anaconda command prompt":
https://github.com/materialsinnovation/pymks/blob/master/INSTALLATION.md#installation-with-anaconda
I am used to conda install and pip install.
Where is the anaconda command prompt? Is this something special?

pip on my system is associated with anaconda python.
which pip = ~/anaconda/bin/pip
Should `pip install pymks` work in this case?

David Brough

unread,
Aug 21, 2015, 12:45:06 PM8/21/15
to PyMKS General
Hi Kyle,

The "use the Anaconda command prompt" is misleading. You should be able to use any shell or command prompt and install PyMKS using pip.

$ pip install pymks

I've created an issue to update the installation documentation to something more generic.

https://github.com/materialsinnovation/pymks/issues/217

Thanks,
David


Ahmet Cecen

unread,
Aug 21, 2015, 1:15:12 PM8/21/15
to PyMKS General
Ok so the problem is, the "Anaconda command prompt" is a command prompt with environment variables loaded in. You cannot use "any" command prompt as easily as this one, you would have to manually add the environment variables or navigate to the folder where the files for pip is. Now this might not be a problem for a properly handled Linux installation, not sure and dont care about whether it is a problem for mac, but it is definitely a problem for Windows. You would much rather use the Anaconda command prompt than anything else in Windows. Here is what the "Anaconda command prompt" does before opening a good old regular command prompt:

@echo off

rem +=====================================================================
rem | Initialisation
rem +=====================================================================

for %%i in ("%~dp0..\envs") do (
    set ANACONDA_ENVS=%%~fi
)

if not "%1" == "" (
    if not exist "%ANACONDA_ENVS%\%1\python.exe" (
        echo No environment named "%1" exists in %ANACONDA_ENVS%
        goto :eof
    )
    set ANACONDA_ENV_NAME=%1
    set ANACONDA="%ANACONDA_ENVS%\%1"
    title Anaconda (%ANACONDA_ENV_NAME%^)
) else (
    set ANACONDA_ENV_NAME=
    for %%i in ("%~dp0..") do (
        set ANACONDA=%%~fi
    )
    title Anaconda
)

set ANACONDA_SCRIPTS=%ANACONDA%\Scripts
set "PATH=%ANACONDA%;%ANACONDA_SCRIPTS%;%PATH%"
echo Added %ANACONDA% and %ANACONDA_SCRIPTS% to PATH.

if not "%ANACONDA_ENV_NAME%" == "" (
    echo Activating environment %ANACONDA_ENV_NAME%...
    set PROMPT=[%ANACONDA_ENV_NAME%] $P$G
)




On Thursday, August 20, 2015 at 10:37:51 PM UTC-4, Kyle Lawlor wrote:

Kyle Lawlor

unread,
Aug 21, 2015, 4:05:46 PM8/21/15
to PyMKS General
Hi all thanks for the responses.
I put together an install procedure that seems to have worked for me.
I hope it is a useful for reference.
Perhaps we can add some of this to the INSTALLATION.md

https://gist.github.com/callmeskywalker/2ac820f959666c9f5cd6

David Brough

unread,
Aug 21, 2015, 4:35:56 PM8/21/15
to Kyle Lawlor, PyMKS General

Thanks Kyle. This is very useful.

I have seen a few Python projects that have links to detailed platform specific installation instructions. I would be in favor of simplifying the current installation page and adding links to instructions like the one Kyle has created. What do you guys think?

--
You received this message because you are subscribed to the Google Groups "PyMKS General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pymks-genera...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pymks-general/6f4a3bf9-660d-4f15-a852-0469a6c504e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kyle Lawlor

unread,
Aug 21, 2015, 5:22:40 PM8/21/15
to pymks-...@googlegroups.com
David -- No problem, I'm glad to help!

Ahmet -- How can I access the Anaconda command prompt in Windows? Is it a feature that comes pre-installed with Anaconda for Windows?

For completeness, I will add info to the gist for how I have configured Anaconda. 
Reply all
Reply to author
Forward
0 new messages