What if pycharm failed to install the d2l package of Deep Learning pytorch?
This article mainly introduces the pycharm installation of deep learning pytorch d2l package failure how to do, the article is very detailed, has a certain reference value, interested friends must read it!
The d2l package cannot be installed in pycharm. Follow these steps to solve the problem successfully.
1. First, check the environment in which pycharm is located.
File- > settings, then as shown in the following figure: mainly look at the yellow box. I am here to create my own pytorch virtual environment. Everyone creates a different virtual environment, so it depends on what kind of virtual environment you have in the yellow box.
2. Open Anaconda Prompt
Click Open as shown in the following figure:
3. Activate the current virtual environment
If the virtual environment is in pytorch, open anaconda prompt, activate the current pytorch environment, and enter the following code:
Activate pytorch
As shown in the following figure:
4. Install d2l package
Then enter the following code, and then enter:
Pip install d2l
5. You don't have to look at reason analysis and experience.
I have tried using the conda install d2l command many times myself, but I cannot download it because there is no corresponding download source. So change to the pip command and download it for the following reasons:
Given the similarity between conda and pip, it's not surprising that some people try to combine these tools to create a data science environment. The main reason for combining pip with conda is that some packages can only be installed through pip. Anaconda Chuangku offers more than 1500 software packages, including the most popular data science, machine learning and AI frameworks. These, along with data including conda-forge and bioconda, are available through thousands of additional packages provided by the Anaconda Cloud and can be installed using conda. Although there are a large number of software packages, it is still small compared to the more than 150000 packages available on PyPI. Sometimes the required package does not have a conda package, but it is available on PyPI and can be installed with pip.
This is what technology is like, there are always problems that you can't think of to solve, step by step, you will always find a solution.
The above is all the contents of the article "what to do when pycharm installs deep learning pytorch's d2l package fails". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!