Ubuntu17.10 pycharm Configuration __msdn

Source: Internet
Author: User

Time: 2017.12.4
(1) Download the corresponding version of decompression
Under the/usr/mytool/pycharm-community-2017.3/bin directory./pycharm.sh
The installation was successful.

(2) Import related library
Create a new project
Click Open File, select default settings, and then select Project Interpreter.
Click on the upper right corner gear, select Add Local ...
Content is selected, but it must be selected for all items to be in effect. And then we set up a new interpreter.
Back to the start click on the upper right-hand corner of the small gear place, this choice show all ....
Select the interpreter that you created before, and then select the following icon on the right: Show paths for all selected interpreter.
Add the package path in which you want to join, and mine is Anaconda3/bin and anaconda3/lib/site-packages to join Conda and torch, respectively.
All the way OK exit, the process of updating the settings is somewhat slow.
Then create a new project. When you choose, click on a small triangle below and select the existing interpreter, the one you just created.
(otherwise Pycharm will create a new interpreter for each new project each time, and you'll have to select the interpreter in the settings again.) )
Then: Import Conda
Import Pytorch
Success.

(3) Set up desktop shortcuts.
If you did not choose to create a shortcut before installing Pycharm, then each time you open pycharm you need to go to the installation directory call: pycharm.sh file, more trouble.
Shortcuts in Linux are saved in/usr/share/applications and end with. Desktop
In Terminal input: gedit/usr/share/applications/pycharm.desktop
Into the/usr/share/applications
Casually open a Python shortcut:
[Desktop Entry]
Name=python (v3.6)
Comment=python Interpreter (v3.6)
exec=/usr/bin/python3.6
icon=/usr/share/pixmaps/python3.6.xpm
Terminal=true
Type=application
Categories=development;
Startupnotify=true
Nodisplay=true

Follow this as a template, changed to Pycharm information, the shortcut was modified successfully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.