zoukankan      html  css  js  c++  java
  • python虚拟环境安装

    安装虚拟环境命令

    apt-get install python3-pip
    pip3 install virtualenv
    pip install --upgrade pip
    apt-get update
    pip3 install virtualenvwrapper

    使得安装的virtualenvwrapper生效,需编辑~/.bashrc 文件

    export WORKON_HOME=$HOME/.virtualenvs
    export PROJECT_HOME=$HOME/workspace
    export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
    source /usr/local/bin/virtualenvwrapper.sh

    使得编辑后的文件生效
    source ~/.bashrc

    (遇到的问题:/usr/bin/python: No module named virtualenvwrapper
    virtualenvwrapper.sh: There was a problem running the initialization hooks.
    If Python could not import the module virtualenvwrapper.hook_loader,
    check that virtualenvwrapper has been installed for
    VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
    set properly.
    解决方法:指定virtualenvwrapper的python解释器路径为/usr/bin/python3(注意是3)
    参考url:https://blog.csdn.net/weixin_40539892/article/details/79512636)

  • 相关阅读:
    百度指数感想
    冲刺贡献分
    冲刺三
    通过myEclipse创建hibernate的实体类
    并发处理
    数据库设计原则(转载)
    Extjs学习
    关于oracle存储过程需要注意的问题
    oracle存储过程
    十大编程算法
  • 原文地址:https://www.cnblogs.com/dong3210/p/9535079.html
Copyright © 2011-2022 走看看