我需要帮助使用其他文件夹中的命令行打开Python。目前,我只能通过Python安装目录中的命令行打开木星笔记本。下列命令起作用:
python -m jupyter notebook
或
python -m notebook
排除python -m或-m会导致错误。
当尝试使用相同的命令从任何其他文件夹访问python时,我会得到以下错误:
'python' is not recognized as an internal or external command,
operable program or batch file.
当我使用jupyter notebook或not
我正在虚拟盒中运行Ubuntu14.04,并安装了最近的anaconda。我用conda安装了jupyter笔记本。我已经跟踪了所有我可以在网上找到的文档来安装笔记本扩展,但是它们没有加载下面列出的错误消息。第一个错误来自运行在终端中的jupyter笔记本应用程序,第二个错误来自于chrome控制台。请注意,我不能在这么多超链接中发布这个问题,所以我在错误消息中从"http“中删除了"p”。
W 07:02:06.451 GET /nbextensions/python-markdown.js?v=20150904070147 (127.0.0.1) 8.47ms refer
我已经在一个文件夹中安装了Python和木星。然后,我移动了这个文件夹。Python在E中:\Python和木星在中现在,Python在E:\Projects\Tests\Python中,木星在E:\Projects\Tests\Python\Scripts.中
当我试图从E:\Projects\Tests\Python\Scripts,开始使用命令行(jupyter notebook)启动木星笔记本时,我有一个错误:
Fatal error in launcher: Unable to create process using
'"E:\Python\python.exe
我正在尝试使用pandas和jupyter笔记本从我桌面上的子文件夹中将一个excel文件读取到数据帧中。这个文件在我的桌面上,文件夹名为'Data',子文件夹'KN-Data',子文件夹'New-Files',文件名为"Customers.xlsx“。 下面是我正在尝试的代码: df_customers = pd.read_excel (r"C:/Users/Zach/Desktop/Data/KN-Data/New-Files/Customers.xlsx") 错误是 [Errno 2] No such file o
我有个问题。我想在我的朱庇特笔记本中调用Python文件。我查看了,但不幸的是,%run -i 'file.py'和!python file.py无法工作,因为我的文件与朱庇特笔记本文件不在同一个文件夹中。
那么,我如何从不同的文件夹调用Python文件呢?Jupyter笔记本
from pathlib import *
# I am using pathlib, because of the whitespace in OneDrive
p = Path('C://Users//user//OneDrive - user//folder//file.py')
我试图打开一个现有的jupyter笔记本从一个文件夹在谷歌驱动器。在colab,我知道:
文件->打开笔记-> google驱动器
只有jupyter笔记本文件下的colab笔记本显示,甚至我有一个文件夹内的Colab笔记本,那个文件夹没有显示。我如何打开文件夹内的笔记本?
但是,如果我这样做,下面的代码,我可以看到内容/驱动器/MyDrive下的所有文件。但我只能看到笔记本作为一个文本,见下面屏幕截图为打开笔记本显示在右手边。我如何在colab中打开一个jupyter笔记本,这样我就可以运行电池了?谢谢
# Load the Drive helper and mount
from
我试图在我的OneDrive文件夹中的图像目录上运行一个函数。当我在jupyter笔记本中使用shell命令时:
!ls ../OneDrive\ -\ University/centralschool
我得到了所有.tif图像的列表。但是,当我试图通过python函数调用目录时:
for f in sorted(listdir('../OneDrive\ -\ University/centralschool')):
print(f)
我得到了典型的错误:
FileNotFoundError: [Errno 2] No such file or directory:
也许这根本不起作用,因为它是一台Mac,但也许有一种方法可以在Mac上打开jupyter笔记本?我尝试了以下命令
jupyter notebook Manager.ipynb
我得到了一个错误
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory. Same with out 'notebook':
jupyter Manager.ipynb
Error executing Jupyter command 'Manager.ipynb'
我已经在我的Windows 10计算机上安装了一个普通的Python,我不想重新安装Anaconda。
当试图在vscode中从ipynb文件运行代码时,我得到以下错误:
Error: Jupyter cannot be started. Error attempting to locate jupyter:
at A.startServer (c:\Users\[username]\.vscode\extensions\ms-python.python-2020.2.64397\out\client\extension.js:1:786120)
at async A.ensureServer