PATH
environment variableimport os print(os.getenv("PATH"))And add with the
envPath
element all the paths which include Anaconda in the path. For example:<systemEnv> <envPath key="PATH" path="L:\WRK\Anaconda3\Anaconda3" append="true" /> <envPath key="PATH" path="L:\WRK\Anaconda3\Anaconda3\Library\mingw-w64\bin" append="true" /> <envPath key="PATH" path="L:\WRK\Anaconda3\Anaconda3\Library\usr\bin" append="true" /> <envPath key="PATH" path="L:\WRK\Anaconda3\Anaconda3\Library\bin" append="true" /> <envPath key="PATH" path="L:\WRK\Anaconda3\Anaconda3\Scripts" append="true" /> <envPath key="PATH" path="L:\WRK\Anaconda3\Anaconda3\bin" append="true" /> </systemEnv>
activate.bat
bat file in the Anaconda installation exactly as for the Anaconda prompt before calling the script, ensuring that Python is correctly configured.<files> <file url="applications.xml" /> <file url="services.xml" /> <file url="types.xml" /> <property key="debugScripts" value="true" /> <property key="ignorePythonWarnings" value="true" /> <pythonRuntime path="L:/WRK/Anaconda3/python.exe" anaconda="true" /> </files>It is also possible at the module level. For example:
<pythonModule name="FlightManagementSystem" > <pythonImplementation path="pythonAppli"> <pythonRuntime path="L:/WRK/Anaconda3/python.exe" anaconda="true"/> </pythonImplementation> </pythonModule>
anacondaEnv
parameter. <files> <file url="applications.xml" /> <file url="services.xml" /> <file url="types.xml" /> <property key="debugScripts" value="true" /> <property key="ignorePythonWarnings" value="true" /> <pythonRuntime path="L:/WRK/Anaconda3/python.exe" anaconda="true" anacondaEnv="Torch9" /> </files>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence