使用Anaconda创建虚拟环境,并在VScode中使用anaconda环境

使用Anaconda创建虚拟环境,并在VScode中使用anaconda环境,第1张

This blog is about how to use anaconda to create virtual environment.
You are welcomed to chat about it and if you like this blog, do not forget to give me a like.

Welcome to see my homepage and contact me: NicholasYe’s Homepage.


1. Install anaconda

First, you should install anaconda, then you will see these applications in the start menu.

  • Here is what main apps means:
AppExplain
Navigatorthe UI interface
Powershellthe powershell of anaconda
Spyderthe coding platform

2. The method of creating a virtual environment
  1. Open Anaconda Powershell Prompt

  1. using conda create -n your_env_name python=x.x

    • your_env_name: enter a specific name to identify different environment
    • python=x.x: the version of python in environment
    • Remember to close you proxy!!
  2. use activate your_env_name to activate your environment

  1. use pip list to check your package


3. Coding in VScode with different environment
  1. You should install Python Extension in VScode

  1. create a .py file and choose the environment


Please clearly mark the source of the article in the process of reproducing it! Respect for originality and intellectual property rights, thanks!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/942989.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-18
下一篇2022-05-18

发表评论

登录后才能评论

评论列表(0条)

    保存