![](/img/trans.png)
[英]Google CoLab - How to run a jupyter notebook file that is in the 'Files' tab (i.e. /content/) of my CoLab environment
[英]How can I run jupyter notebook from my virtual environment?
我已經使用Python3.3創建了一個虛擬環境,需要與Siemens NX進行交互。 康達創建-n nxve python = 3.3 anaconda
我想從這個虛擬環境中運行jupyter notebook。 當我嘗試安裝它時,出現版本沖突。
activate nxev
conda install jupyter
Fetching package metadata ...........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in
conflict:
- jupyter -> ipykernel -> jupyter_client -> jupyter_core -> python 2.7*
- python 3.3*
Use "conda info <package>" to see the dependencies for each package.
如何在此虛擬環境中安裝jupyter筆記本? 另外,是否可以從jupyter notebook的根目錄安裝來運行虛擬環境內核?
Jupyter堆棧通常會產生其他進程。 我的猜測是,當您在命令行上運行python時,它將解析為python 2.7。 嘗試設置別名:
alias python=python3
還要確保您的PATH和PYTHONPATH變量沒有指向與python2相關的任何內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.