PyDev/Eclipse not loading _mklinit when run from a Conda environment

前端 未结 5 1879
借酒劲吻你
借酒劲吻你 2020-12-18 08:24

I created a conda environment - testenv2 - installed python/numpy/pandas. Added it as the interpreter in Eclipse project settings and using it to run my test python script.

5条回答
  •  半阙折子戏
    2020-12-18 09:15

    1.First open Anaconda Powershell Prompt and run the command

    conda activate (path where you have the anaconda environment)
    

    2.then open System-->Advanced System Settings-->Environment variables

    a.in the User variable Path change the path to

    (path where you have the anaconda environment)Library\bin
    

    b.in the System variable add a new variable PYTHONPATH and give its path as

    (path where you have the anaconda environment)\Lib;(path where you have the anaconda environment)\DLLs;(path where you have the anaconda environment)\Lib\lib-tk;(Drive where you have the anaconda environment)\other-folders-on-the-path
    

    3.close eclipse and run again

提交回复
热议问题