python3编写web遇到的问题总结/Problems when using python3 to write webpages

本文档记录了使用Python3编写Web页面时遇到的问题,包括Python3安装失败、环境变量配置、pip与pip3的区别、无法打开http://0.0.0.0及本地主机问题。解决方案涉及更改环境变量、使用正确版本的pip、检查网络设置及安装IIS。
摘要由CSDN通过智能技术生成

Preparation

Environment: Windows 10
Language: python3
Packages: flask, dash, pandas, etc.

This document records problems I encountered when writing webpages. Most are stupid. But I am not smart, so I write them down.

Python3.6 installation failed

When a newer Python is already installed, the installation will fail. Check the version of Python, Anaconda, … Make sure unnecessary versions are uninstalled.

Add both Python2 and Python3 to Environment Variables

Just copy one python.exe and paste it in the folder. Change the copied name into ‘python3.exe’(or ‘python2.exe’).
Right Click ‘This PC’ in File Explorer and click ‘Properties’.
Advanced System Setting > Advanced > Environment Variables > System Variables > Edit the ‘path’ entry and add both python2 and python3 paths.
Try ‘python --version’, ‘python3 --version’ or ‘python2 --version’ in command prompt.

pip? No it is pip3.

Open Command Prompt and type command.

Python3 cannot use following command to install package.
(@packagaName can be ‘numpy’, ‘pandas’, ‘flask’, etc.)

pip install @packageName

For I’ve uninstalled python2, it will throw out an erro

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值