[大学院-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.

相关推荐
春日见17 分钟前
五分钟入门 强化学习---Q-Learning算法与实现
人工智能·python·深度学习·算法·机器学习·计算机视觉
weixin_4684668539 分钟前
Prometheus监控服务部署与实战指南
服务器·后端·python·docker·自动化·prometheus
花酒锄作田1 小时前
[Python]标准库argparse解析命令行参数使用介绍
python
卡次卡次11 小时前
vibecoding起步之注意点:如何做一个聊天机器人
python·ai
Hanniel1 小时前
Python 元类(下):进阶与实战建议
开发语言·python
mONESY1 小时前
Python 字典(dict):从原理到实战,彻底搞懂哈希表核心
python
卡次卡次11 小时前
vibecoding起步之注意点:从零到一:Claude Code 接入飞书文档的完整链路
python
Mikowoo0071 小时前
机器学习_梯度计算
人工智能·python·机器学习
雪隐2 小时前
AI股票小助手01-量化交易基础概念
人工智能·后端·python
芝麻开门GEO2 小时前
2026年Q2济南企业如何选择可靠的GEO服务商
大数据·人工智能·python