当前位置:网站首页>Jupyter import Package Failed
Jupyter import Package Failed
2022-07-23 05:11:00 【orajamie】
jupyter import Package failed
Here are two examples I use pycharm Medium jupyter Examples of packages that cannot be introduced when , Make a note here , In case you forget what to do in case of the same situation in the future , If you have the same situation, you can try , Lightning protection together .
import imblearn Failure resolvent
close vpn:
I have installed DevSidecar, You need to close to continue to the next step , Other situations are not clear .
operation
1、 stay jupyter Write the following two lines of code :
import sys
sys.path
see jupyter Mode of python Compile path .
Output results :
['F:\\COMPETITION\\C2',
'F:\\COMPETITION\\C2',
'D:\\Anaconda\\Anaconda2\\python38.zip',
'D:\\Anaconda\\Anaconda2\\DLLs',
'D:\\Anaconda\\Anaconda2\\lib',
'D:\\Anaconda\\Anaconda2',
'',
'C:\\Users\\SCAU-Action\\AppData\\Roaming\\Python\\Python38\\site-packages',
'D:\\Anaconda\\Anaconda2\\lib\\site-packages',
'D:\\Anaconda\\Anaconda2\\lib\\site-packages\\win32',
'D:\\Anaconda\\Anaconda2\\lib\\site-packages\\win32\\lib',
'D:\\Anaconda\\Anaconda2\\lib\\site-packages\\Pythonwin',
'D:\\Anaconda\\Anaconda2\\lib\\site-packages\\IPython\\extensions',
'C:\\Users\\SCAU-Action\\.ipython',
'D:\\pythonprofessional\\PyCharm 2021.1\\plugins\\python\\helpers\\pydev',
'D:\\pythonprofessional\\PyCharm 2021.1\\plugins\\python\\helpers-pro\\jupyter_debug']
Actually, I don't know which line to look at , But I found that most of the paths are under this path
D:\\Anaconda\\Anaconda2\\lib\\site-packages
2、 Open this path , I got inspiration from the following blogger's article , Find out jupyter Of kernel route , Although I don't see it intuitively in my path ipykernel, But you can find it in the path above .
jupyter Unable to import The solution of the new package ( If there is any infringement, please inform to delete )
Then I found out ipykernel Also under the path above :
stay windows Of cmd Enter this path
D:\\Anaconda\\Anaconda2\\lib\\site-packages
Re execution pip command
pip install imblearn
I wrote it because I have successfully installed it , So there is no cut-off picture for the installed appearance ...
End of this part .
import matplotlib Failure resolvent
open vpn?
( The expression of this title may not be quite right , But I won't . It's strange , The upper one should be closed , Open this ...)
I need to open it here DevSidecar, To move on , Other situations are not clear .
operation
1、 open Anaconda Prompt
The operation is similar to that of this blogger :
Jupyter Run magic in %matplotlib inline error ModuleNotFoundError: No module named ‘matplotlib‘( If there is any infringement, please inform to delete )
2、 First of all activate Your virtual environment , And then again pip.
Here I compare dishes , I don't know what my virtual environment is , After I lost threeorfour wrong virtual environments ,prompt Remind me that I can use the following command to view the existing environment ( It's really smart, hee hee ).
conda info -e
Output results :
3、activate The environment in the above results , Then proceed pip.
activate D:\Anaconda\Anaconda2
pip install matplotlib
If no accident , Get it done .
边栏推荐
- 【北交】图像处理:基本概念、图像增强、形态学处理、图像分割
- Using tensorflow to preprocess the input image to get the input layer of neural network
- Deep learning series -- alxenet realizes MNIST handwritten numeral recognition
- *Programming understanding * build the network mobilenetv2 from 0 and conduct training and testing
- redis 脚本扫描
- jupyter import包失败
- Jetpack -- transformations of livedata extension
- Game between linear classifiers of linear model
- 基于百度智能云平台的情感倾向计算
- tensorflow——tf.train.slice_ input_ producer,tf.train.string_ input_ Research on two kinds of queue batch reading methods of producer
猜你喜欢

opencv项目实战-信用卡识别

*论文篇*EmotiCon: Context-Aware Multimodal Emotion Recognition using Frege’s Principle论文翻译

数字孪生示范项目——从单摆谈起(3)实体模型探索

在离线环境下用 VScode 的 Remote-SSH 插件连接服务器

Comparison between logistic regression and multilayer neural network

opencv 项目-信用卡识别(学习记录)

Espressif 玩转 固件下载

*Thesis *context based emotion recognition using emotic dataset thesis translation

Super resolution segmentation of retinal layer based on Gan in optical coherence tomography

jupyter import包失败
随机推荐
合工大苍穹战队视觉组培训Day4——传统视觉,轮廓识别
电信客户流失预测挑战赛baseline【AI比赛】
【北交】图像处理:基本概念、图像增强、形态学处理、图像分割
Jena fuseki online update database
WPS mathtype安装 错误53
HDU 2167 pebbles (state compression)
GIC介绍 (三)——GIC400 Register
Correct the bug that relfinder draws lines in the wrong direction
makefile 使用简介
SVM线性可分线性支持向量机
智能机器人与智能系统(大连理工大学庄严教授)——4.自主机器人
Espressif 玩转 WebSocket
AXI協議詳解
*YOLO5学习*基于yolo5-face结合注意力模型CBAM的数据实验
数字孪生示范项目——从单摆谈起(2)愿景探索和应用场景
*数据集*关于数据集的处理_裁剪一定尺寸并保存
On GaN network
ICM20948九轴传感器角速度读取与实际单位转化的换算关系
Espressif esp-aws-iot 入门
Espressif 8266 AT+MQTT连接AWS IoT