1.安装失败
(ju) C:\>pip install jupyterlab -i --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/jupyterlab/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/jupyterlab/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/jupyterlab/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/jupyterlab/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/jupyterlab/
ERROR: Could not find a version that satisfies the requirement jupyterlab (from versions: none)
ERROR: No matching distribution found for jupyterlab
WARNING: There was an error checking the latest version of pip.
不用镜像也一样, 以上说明,install和安装库的源头没关系,那怎么解决?
这里引入了另外一个镜像网站:
pip install 安装包名字 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
成功了。
2.创建新笔记本出错
以管理员身份运行。
3.打开特定项目。
顺序应该是
进入虚拟环境,cd到项目文件夹,再运行jupyter。
4.需求配置。
如是 顺序应该先是进入虚拟环境,再进项目路径,再下载所需资源,这些步骤应在jupyter运行前。
5.配置时某个包出错
pycurl>=7.43.0.5
这个需求配置失败。
查看适配python3.7的版本
(ju) C:\Users\59412\PycharmProjects\2022-Machine-Learning-Specialization>pip install --verbose pycurl==
Using pip 22.3.1 from C:\Users\59412\miniconda3\envs\ju\lib\site-packages\pip (python 3.7)
ERROR: Could not find a version that satisfies the requirement pycurl== (from versions: 7.18.2, 7.19.0, 7.19.0.1, 7.19.0.2, 7.19.0.3, 7.19.3, 7.19.3.1, 7.19.5, 7.19.5.1, 7.19.5.2, 7.19.5.3, 7.21.5, 7.43.0, 7.43.0.1, 7.43.0.2, 7.43.0.3, 7.43.0.4, 7.43.0.5, 7.43.0.6, 7.44.0, 7.44.1, 7.45.0, 7.45.1, 7.45.2)
ERROR: No matching distribution found for pycurl==
这里还是有疑问的,明明有适合的版本
改成pip install pycurl==7.43.0.5
解决了。
6.结束jupyter notebook
ctrl+c