python spyder conda install failure

后端 未结 2 1041
死守一世寂寞
死守一世寂寞 2021-01-14 06:42

I am new to Python, now I am using Anaconda Spyder as my main Python distribution. I am learning how to use conda to install/update packages. When I read relevant books and

相关标签:
2条回答
  • 2021-01-14 06:57

    I started exploring Python on Spyder(Anaconda) and faced these issues. Though late, but this could help someone facing similar issues. I performed these on Windows7 and Anaconda3(64bit).

    Step1: Identify the location where you installed your Anaconda.

    Windows > All Programs > Anaconda3(64 bit) > Right Click on Spyder > Properties.
    It shows Spyder target location, say, "C:\bla\bla\anaconda3\Scripts\spyder-script.py"
    

    Step2: Now through folder explorer navigate to identified path as in Step1 i.e. "C:\bla\bla\anaconda3\Scripts\"

    Here you will see many exe files including conda.exe and pip.exe
    

    Step3: Open Windows Command prompt

    C:\>cd C:\bla\bla\anaconda3\Scripts
    C:\bla\bla\anaconda3\Scripts>
    

    Step4: Now simply type all your pip or conda commands. It will install these libraries

    C:\bla\bla\anaconda3\Scripts>pip install pandas
    C:\bla\bla\anaconda3\Scripts>conda update conda
    

    Step5: Now you can import the installed libraries directly in Spyder. It won't complain.

    0 讨论(0)
  • 2021-01-14 07:12

    You are trying to use a Python console to update your conda distribution when you have to update it from your local console.

    I guess you're using Windows, just open the command prompt (cmd.exe), and from there update the conda distribution with the commands you already know:

    conda update conda
    conda update anaconda
    conda install <package>
    

    Update:

    Conda commands have to be used directly in the command prompt:

    0 讨论(0)
提交回复
热议问题