[大学院-python-base gammer learning(1): setting conda + Jupyter ]

@TOC(python-base gammer learning(1): setting conda + Jupyter )

1:introduction

这部分是大学院课程复习部分,我会使用英文来书写,增加自己英语应用能力,让我们开始python 学习吧。!!!

people should constantly improve themselves.

I ofter use Python in my work and studies , However I have not systematically learned Python grammear before.

this is something I wangt to change

I aim to learn Python grammar thoroughly and gain a deeper understanding of it

2:computer setting development environment

It is ver important to ensure that your computer settings and development environment are properly configured .

If the setup is in corret or complicated , Python may not work properly , and errors may occur

Therefore we need to make sure that our computer setings and development environment are correctly prepared

System Requirements

  • win : 10 /11
  • python 3.x

(1) open powershell or command Prompt

bash 复制代码
systeminfo

(2) check Python Version

this order is test python version , Use the following commands to check the installed Python version:

bash 复制代码
python --version 

python3 --version

(3) Check pip Version

this order is test pip version Use tis command to check the pip version

bash 复制代码
pip --version 

3 introduction to Python and conda and Jupyter Notebook

(1) python

official website:

URL:https://www.python.org/

Python is widely used programming llanguage for developemnt ,data analysis and AI


(2) Anaconda

Anaconda

official documentation:
https://docs.conda.io/projects/conda/en/stable/

Anaconda is a distribution that simplifies package management and environment setup

it is very useful for beginners and data science workflows

(3) Jupyter Notebook

this section explains how to install jupyter Notebook

Open powershell or command prompt(run as administrator ),then execute

,

bash 复制代码
conda install notebook

after installation , start jupyter Notebook:

bash 复制代码
jupyter notebook

(4) Recommendation

instead of intsalling packages in the base environment(c:\miniconda3),

it is better to create a new environment:

bash 复制代码
conda create -n myenv python=3.10 notebook
conda activate myenv
jupyter notebook

4 Function Testing

(1) Create a new file

create a new notebook file in jupyter

(2) test code

Write a simple test program.

(4) running code

Shift + Enter to run the code.

5 problom

(1) Cannot Install Jupyter

Problem:

bash 复制代码
conda install notebook → cannot find or install

solution:

  • Run as Administrator
  • Or create a new environment

(2)cannot open jupyter page

sometimes you may see an error when opening the browser

solution:

open manually in your brower:

bash 复制代码
http://localhost:8888

6 Summary

this is the beginning of my pthon learning journey.

by setting up the environment correctly , I can focus on learning python more efficiently.

I will continue improving my skills step by step.

相关推荐
2601_967980114 分钟前
python+appium自动化测试如何控制App的启动和退出
android·自动化测试·python·appium·设备调试
威哥爱编程1 小时前
模拟面试智能体开发实战 12:每篇都能跑不等于接起来能跑,端到端联调收官把十一块拼图合成一个能用的智能体
python·agent·harmonyos
威哥爱编程1 小时前
模拟面试智能体开发实战 11:报告只躺在后端怎么复盘,把总评搬上手机还要适配大小屏
python·agent·harmonyos
2601_967987372 小时前
Python 实现行为驱动开发 (BDD) 自动化测试详解
自动化测试·python·bdd·behave·gherkin
数字融合3 小时前
透明化视频驱动化工生产动态三维重建管控技术
大数据·人工智能·python
屿华AI4 小时前
AUTOSAR 实战-诊断工具 | DTC/Event/FiM 故障报告自动化:DEM 诊断数据采集与解析
python·测试工具·自动化·汽车
贝壳6904 小时前
9.13.12 那三个新功能,我一个一个跑了一遍:两个真香,一个有前提
python
2601_967980114 小时前
Python 与云计算:AWS、GCP、Azure 实践
python·云计算·azure·aws·gcp
linweidong4 小时前
RTX 4090 Ubuntu + ComfyUI + comfy-kitchen 0.2.41 完整部署文档
机器学习·云原生·conda·pandas·scikit-learn
屿华AI4 小时前
AUTOSAR 实战-诊断工具 | 基于 Python 与 USB-CANFD 的 UDS 诊断测试工具设计与实现
开发语言·python·测试工具