Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build a Development Environment for Deep Learning with Python

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to build a deep learning development environment for Python". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Deep learning has received a lot of attention because it is particularly good at a type of learning that is very useful for practical applications. Running some simple examples is a good way to start learning this technique. Setting up the development environment is the first step.

There are several ways to set up an environment for deep learning. You can do this on Windows, Mac OS, or Linux. I strongly recommend developing on Mac OS or Linux, because most people in this field use Linux or Mac OS.

1. Install Anaconda

An updated guide to installing Anaconda can be found on the official website.

two。 Create a virtual environment

The Python language has several versions, such as 2.6,2.7,3.7 and so on. In many cases, open source projects rely on different languages and package versions. It's easy to mess up the development environment. The right way to handle this situation is to create a separate virtual environment for the project based on the same package and version. Everything installed in a virtual environment affects only that environment, but nothing else. In essence, the virtual environment is a separate directory.

Create a virtual environment called "p3" and specify a Python language version of 3.7.

Conda create-n p3 python=3.7

Activate the newly created virtual environment "p3".

Source activate p3

Install commonly used machine learning packages.

Pip install numpypip install pandaspip install scikit-learnpip install seaborn

Install Deep Learning Pack

Pip install tensorflowpip install keras

You can also deactivate the virtual environment.

Source deactivate p33. Install PyCharm

Download the community version here: https: / / www.jetbrains.com/pycharm/download/#section=linux

Copy it to the / opt/ directory.

Sudo cp pycharm-community-2017.1.4.tar.gz / opt/

Extract the file.

Cd / opt/tar-xzvf pycharm-community-2017.1.4.tar.gz

Start running the script.

. / opt/pycharm-community-2017.1.4/bin/pycharm.sh, "how to build a deep learning development environment for Python" is introduced here. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report