Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
355 views
in Technique[技术] by (71.8m points)

python - 通过Anaconda安装时引用PyCharm中的库(Referencing libraries in PyCharm when installed through Anaconda)

Our first semester C++ course requires us to develop an intelligent chatbot for which I have been trying to follow tech with tim's youtube tutorial.

(我们的第一学期C ++课程要求我们开发一个智能的聊天机器人,我一直在努力为Tim的youtube教程追随技术。)

Now, for a long time, I couldn't activate conda environment in the cmd as shown in the video.

(现在,很长时间以来,我无法激活cmd中的conda环境,如视频所示。)

I was told by a student to write the command in the Anaconda Prompt.

(一个学生告诉我要在Anaconda Prompt中编写命令。)

I installed all libraries through Anaconda Prompt.

(我通过Anaconda Prompt安装了所有库。)

Now, I was using PyCharm and copy pasted the code into it.

(现在,我正在使用PyCharm,并将代码复制粘贴到其中。)

The libraries when imported are shown to be unreferenced.

(导入时的库显示为未引用。)

I have launched Jupyter via Anaconda Navigator and don't know how to make the same files (as shown in the video) in the Jupyter.

(我已经通过Anaconda Navigator启动了Jupyter,但不知道如何在Jupyter中制作相同的文件(如视频所示)。)

Is there a way that I could link Anaconda to PyCharm?

(有什么方法可以将Anaconda链接到PyCharm?)

Alternatively can someone guide me as to how I can make .json and separate files in the Jupyter Notebook?

(另外,有人可以指导我如何在Jupyter Notebook中制作.json和分离文件吗?)

Video linked: https://youtu.be/wypVcNIH6D4

(链接的视频: https : //youtu.be/wypVcNIH6D4)

  ask by Raina Ali translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

To link anaconda with pycharm: Configure a Conda virtual environment

(要将anaconda与pycharm链接: 配置Conda虚拟环境)
Alternatively you can also do this:

(或者,您也可以执行以下操作:)
在此处输入图片说明 在此处输入图片说明 在此处输入图片说明 在此处输入图片说明 在此处输入图片说明 在此处输入图片说明

When using anaconda with pycharm you need to make sure you choosed the right python interpreter when running the script:

(将Anaconda与pycharm结合使用时,需要确保在运行脚本时选择了正确的python解释器:) 在此处输入图片说明 在此处输入图片说明 在此处输入图片说明

在此处输入图片说明


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...