提交 9b698ce9 编写于 作者: D djq8888 提交者: xsrobin

update compile_CentOS.md (#926)

* update compile_CentOS.md
* update user guide to install virtualenv

* update compile_Ubuntu.md
* update user guide to install virtualenv
上级 1a70d5bb
......@@ -164,7 +164,8 @@
3. 找到`virtualenvwrapper.sh`: `find / -name virtualenvwrapper.sh`(请找到对应Python版本的`virtualenvwrapper.sh`)
4. 查看`virtualenvwrapper.sh`中的安装方法: `cat vitualenvwrapper.sh`, 该shell文件中描述了步骤及命令
5. 按照`virtualenvwrapper.sh`中的描述,安装`virtualwrapper`
6. 创建名为`paddle-venv`的虚环境: `mkvirtualenv paddle-venv`
6. 设置VIRTUALENVWRAPPER_PYTHON:`export VIRTUALENVWRAPPER_PYTHON=[python-lib-path]:$PATH` (这里将[python-lib-path]的最后两级目录替换为/bin/)
7. 创建名为`paddle-venv`的虚环境: `mkvirtualenv paddle-venv`
5. 进入虚环境:`workon paddle-venv`
......
......@@ -154,7 +154,8 @@
4. (Only for Python3) 设置虚环境的解释器路径:`export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3.5`
5. 查看`virtualenvwrapper.sh`中的安装方法: `cat virtualenvwrapper.sh`, 该shell文件中描述了步骤及命令
6. 按照`virtualenvwrapper.sh`中的描述,安装`virtualwrapper`
7. 创建名为`paddle-venv`的虚环境: `mkvirtualenv paddle-venv`
7. 设置VIRTUALENVWRAPPER_PYTHON:`export VIRTUALENVWRAPPER_PYTHON=[python-lib-path]:$PATH` (这里将[python-lib-path]的最后两级目录替换为/bin/)
8. 创建名为`paddle-venv`的虚环境: `mkvirtualenv paddle-venv`
注意:以上涉及Python3的命令,用Python3.5来举例,如您的Python版本为3.6/3.7,请将上述命令中的Python3.5改成Python3.6/Python3.7
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册