Mac下conda环境操作、conda换源、pip换源_python_Awt_FuDongLai的博客-CSDN博客
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
mkdir .pip
cd .pip
vim pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn
conda create -n py36 python=3.6
source activate py36
pip install fastapi
pip install uvicorn
# for mongodb
pip install pymongo
mongo
# create feedback database
use feedback
# create feeds collection
db.createCollection("feeds")
show collections
# remove all documents
db.feeds.remove({})
uvicorn main:app --reload
👤 Zhihao Zhang
- Github: @zzh1991
Please ⭐️ this repository if this project helped you!