virtualenv

    2熱度

    1回答

    我在我的文件系統上有一個自定義Python包(稱爲MyProject),其中包含setup.py和requirements.txt。該軟件包需要由Flask服務器(將部署在AWS/EC2/EB上)使用。 在我的Flask項目目錄中,我創建了一個virtualenv並運行pip install -e ../path/to/myProject。 但由於某些原因,的MyProject上游的git回購在p

    0熱度

    1回答

    我想要得到一個在Ubuntu 17中工作的python項目,但我在模塊加載時遇到了問題。我已經能夠用一個微不足道的例子來分析問題。此示例適用於Windows 10,但不適用於Ubuntu。幫助得到這個工作將不勝感激! 這裏是我下面的步驟: 首先,我創建在〜/ dev目錄下的項目目錄名爲code_playground。接下來,我創建的virtualenv爲這個項目: ~/dev$ which vir

    0熱度

    1回答

    我想在服務器上部署我的Python Django項目(使用Nginx)。 但是,當我收集靜 python manage.py collectstatics 我得到了一個錯誤: Couldn't import Django. Are you sure it's installed and " ImportError: Couldn't import Django. Are you sure it

    0熱度

    1回答

    爲virtualenv文檔說,以激活從內部蟒蛇的環境中,使用 activate_this = '/path/to/env/bin/activate_this.py' execfile(activate_this, dict(__file__=activate_this)) 但execfile在Python 3不存在如果我嘗試使用exec(open("venv/bin/activate_thi

    1熱度

    1回答

    在Linux機器上,設置環境變量是終端的一個快捷命令。作爲通過虛擬環境在多個項目上工作的Python/Django開發人員,virtualenvwrapper的postactivate腳本對設置項目相關環境變量非常有用。你訪問一個virtualenv,你的環境變量就在那裏,你無動於衷,並且他們已經離開了。 在Windows中,我有virtualenv和virtualenvwrapper-win。設

    3熱度

    2回答

    我需要一個python腳本,將激活一個virtualenv中,運行的virtualenv內的另一個Python程序,然後第二Python程序關閉後關閉virutalenv。這裏是我的代碼: import os import subprocess from subprocess import Popen activate_dir = "C:/Users/JohnDoe/theprogram/

    0熱度

    1回答

    長話短說:當我安裝django時,它會提供我過去刪除的遷移。 這裏是我做的:(管理員,用戶,ECT) $ mkvirtualenv foo $ (foo) pip install django Collecting django Using cached Django-1.11.5-py2.py3-none-any.whl Collecting pytz (from django)

    2熱度

    2回答

    我使用mkvirtualenv創建虛擬環境,並且出現此錯誤,我哪裏出錯了? $ mkvirtualenv data New python executable in /home/usman/.virtualenvs/data/bin/python Installing setuptools, pip, wheel... Complete output from command /ho

    0熱度

    2回答

    安裝我有2個pyenv版本安裝 pyenv versions system * 2.7 (set by ../.python-version) 3.5.3 當我創建一個virtualenv我的項目目錄內,我希望它爲當前pyenv蟒蛇創建virtualenv版本2.7 ,但是當我使用mkvirtualenv whatever 虛擬ENV創建一個正在創造一個python3的v

    0熱度

    1回答

    以前我在 > port select --list python .. python27 (active) .. 現在,即使經過 > sudo port select --set python python36 和 > pip install autoenv==1.0.0 我仍然發現activate.sh > which activate.sh /opt/local/Libra