Skip to content

Commit 1ca4d06

Browse files
committed
添加python环境
1 parent 8eb246c commit 1ca4d06

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
- [CPP](./cpp.md)
66
- [Go](./go.md)
7-
7+
- [Python](./python.md)
88
- [Copilot in Visual Studio Code](./Copilot.md)

python.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
### Python
2+
3+
4+
#### WSL配置conda
5+
```shell
6+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
7+
sudo chmod 777 Miniconda3-latest-Linux-x86_64.sh
8+
./Miniconda3-latest-Linux-x86_64.sh
9+
10+
11+
echo "export PATH=${HOME}/miniconda3/bin/conda:$PATH" >> ~/.bashrc
12+
13+
# 创建虚拟环境
14+
conda create -n env_name python=3.6
15+
#进入该虚拟环境
16+
conda activate env_name
17+
#退出该虚拟环境
18+
conda deactivate env_name
19+
conda install package_name
20+
```
21+
22+
23+
24+
25+
#### 参考资料
26+
+ [《win10+wsl2+vs code+python平台搭建笔记》](https://zhuanlan.zhihu.com/p/394535900)

python/test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Hello World")

0 commit comments

Comments
 (0)