-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
## 开发环境 | ||
|
||
|
||
### conda : python多版本控制 | ||
|
||
anaconda 安装, pycharm 配置conda环境。 | ||
```shell | ||
# 查看环境 | ||
conda env list | ||
# 创建环境 ,最新的 python | ||
conda create --name myenv | ||
# 指定 3.10 python 版本 | ||
conda create -n myenv3.10 python=3.10 | ||
# 激活 | ||
conda activate myenv3.10 | ||
# 删除环境 | ||
conda remove --name myenv3.10 --all | ||
# 克隆环境 | ||
conda create --name cpname --clone oldname | ||
pip list | ||
conda list | ||
|
||
``` | ||
|
||
### 安装 jupyter, pandas,matplotlib,opencv-python 库 | ||
```shell | ||
pip install jupyter | ||
# 浏览器会打开 jupyter notebook | ||
# 在需要打开的项目中 执行。 | ||
jupyter notebook | ||
# 数据分析包, 可以处理表格数据 | ||
pip install pandas | ||
# 绘图包 | ||
pip install matplotlib | ||
# 图像处理库, 视频处理 | ||
pip install opencv-python | ||
# 安装dataspell, 操控jupyter . | ||
|
||
``` | ||
|
||
|
||
### jupyter一些命令 | ||
|
||
```text | ||
%run 运行命令行 | ||
%timeit 同行加一行 | ||
%%timeit 在其下面运行代码块。 | ||
%time | ||
%%time | ||
%run? : 加个? 看使用文档 | ||
np.random.<TAB> 查看random中的更多方法 | ||
np.random? 看模块的文档 | ||
``` |