栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

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

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

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!

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/890316.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号