kindle manager
This commit is contained in:
37
makepkg.md
37
makepkg.md
@@ -113,8 +113,44 @@ A:
|
|||||||
解决!
|
解决!
|
||||||
|
|
||||||
|
|
||||||
|
## 附:python虚拟环境(Mac/Linux)
|
||||||
|
|
||||||
|
### 安装虚拟环境
|
||||||
|
sudo pip install virtualenv
|
||||||
|
sudo pip install virtualenvwrapper
|
||||||
|
|
||||||
|
安装完虚拟环境后,如果提示找不到mkvirtualenv命令
|
||||||
|
mkdir .virtualenvs
|
||||||
|
环境变量~/.bash_profile:
|
||||||
|
```
|
||||||
|
export PATH="/usr/local/bin:$PATH"
|
||||||
|
export WORKON_HOME=$HOME/.virtualenvs
|
||||||
|
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
|
||||||
|
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
|
||||||
|
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
|
||||||
|
source /usr/local/bin/virtualenvwrapper.sh
|
||||||
|
```
|
||||||
|
source ~/.bash_profile
|
||||||
|
|
||||||
|
### 创建虚拟环境
|
||||||
|
mkvirtualenv kmanenv
|
||||||
|
|
||||||
|
所有的虚拟环境都位于/home/下的隐藏目录.virtualenvs下
|
||||||
|
|
||||||
|
### 使用虚拟环境
|
||||||
|
1. 进入虚拟环境
|
||||||
|
workon
|
||||||
|
workon kmanenv
|
||||||
|
workon kmanenv后用pip安装的包都在kmanenv这个虚拟环境下起作用,退出后不可用
|
||||||
|
1. 退出虚拟环境
|
||||||
|
deactivate
|
||||||
|
1. 删除虚拟环境
|
||||||
|
rmvirtualenv kmanenv
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Reference
|
# Reference
|
||||||
|
1. [python虚拟环境搭建](https://www.cnblogs.com/chjxbt/p/10517952.html)
|
||||||
1. [ModuleNotFoundError: No module named 'pkg_resources.py2_warn' ](https://blog.csdn.net/qq_40608730/article/details/104864943)
|
1. [ModuleNotFoundError: No module named 'pkg_resources.py2_warn' ](https://blog.csdn.net/qq_40608730/article/details/104864943)
|
||||||
1. [pyinstaller使用自定义spec](https://www.cnblogs.com/yemeng/p/6253097.html)
|
1. [pyinstaller使用自定义spec](https://www.cnblogs.com/yemeng/p/6253097.html)
|
||||||
1. [Python中的图片打包与pyinstaller中的spec文件简介](https://blog.csdn.net/SCDS_Zyx/article/details/82052396)
|
1. [Python中的图片打包与pyinstaller中的spec文件简介](https://blog.csdn.net/SCDS_Zyx/article/details/82052396)
|
||||||
@@ -124,4 +160,3 @@ A:
|
|||||||
1. [my spec file2](kmanapp.win.spec)
|
1. [my spec file2](kmanapp.win.spec)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user