windows 10 파이참pycharm 이용 시 주석처리 단축키는 'Ctrl + /'인데,

이 단축키가 갑자기 작동이 안되고 '/'가 입력됐다. 

검색해보니 https://dev-jinee.tistory.com/3 에서는 'Ctrl + Shift' 를 눌러 Microsoft 입력기로 바꿔주면 된다고 했는데, 

나는 '윈도우키 + 스페이스'를 눌러 바꿔줄 수 있었다.

 
windows 10 파이참pycharm 이용 시 주석처리 단축키는 'Ctrl + /'인데,

windows 10 파이참pycharm 이용 시 주석처리 단축키는 'Ctrl + /'인데,
 
 

Posted by uniqueone
,

1. 파이참Pycharm으로 원격 서버 연결해서 코드 수정하려면 일단 원격서버에 SSH를 설치해야한다. 

 https://lucidmaj7.tistory.com/178 를 참조해서 설치하자

2. 그 후 아래 사이트들을 참조하여 파이참 프로페셔널 버전으로 연결하여 수정할 수 있다.

https://wisdomcoder.oopy.io/6358c13a-0b75-42b5-adf9-e31f17b5901b , https://epicarts.tistory.com/99

 

 

 

 

 

 

 

 

 

 

 

 

 

Posted by uniqueone
,

https://bestpractice80.tistory.com/57

 

SSL 통시늘 시도 시 회사에서는 방화벽 문제로 인해서 Server Certificates 오류가 발생 할 수 있다.

 

* 해결 방법 

-  SSL 통신 옵션 해제

File > Settings > Tools > Server Certificates > Accept non-trusted certificates automatically 체크

File > Settings > Appearance & Behavior > System Settings > Updates > Use Secure connection 체크 해제

 

참고자료 : 
https://www.jetbrains.com/help/idea/server-certificates.html
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206773929-sun-security-validator-ValidatorException-when-trying-to-use-CLion-Updater
https://www.jetbrains.com/help/hub/Trusted-SSL-Certificates.html

 

 

 

Posted by uniqueone
,

https://stackoverflow.com/questions/25135328/how-do-i-make-pycharm-stop-hiding-unfold-my-python-imports

As this question may be useful for people who also are not looking for the term "code folding", I'll make my comment an answer.

As extracted from IntelliJ IDE Web Help, but also worked on PyCharm CE 3.4.1:

  1. Open the IDE Settings (File > Settings, or Ctrl+Alt+S).
  2. Under the "Editor" node, click "General" and then "Code Folding". The "Code Folding" page is displayed.
  3. In the "Collapse by default list", select the check boxes to the left of the code constructs you want to be displayed collapsed. So here you can uncheck "Imports".
  4. Apply changes.

The image below shows what it looks like:

---------------------------------------------------- 

Updated

File -> Setting -> Editor -> General -> Code Folding -> at 'Fold by default', uncheck 'Imports'

 

 

 

 

 
Posted by uniqueone
,

www.quora.com/How-can-I-use-Pycharm-to-run-two-Python-programs-simultaneously

You have 2 solutions.

One is to run your Python program in one instance of PyCharm, and then use a new instance to open your other program, and run it there.

You simply do it by doing File->Open, and select the Project. It will ask you whether you want to have it open in the same, or in the new window.

If you have programs that are not GUI based, you can also open two terminals, and run a program simply by typing

 

  • ./yourProgram1/main.py 

 

into the first terminal, and

 

  • ./yourProgram2/main.py 

 

into your second one.

In the case you’re using macOS or Linux, and it won’t start, make sure to do

 

  • chmod a+x yourProgram1/main.py 

 

as well as for main of the second program.

For Windows -> How do I run a Python program in the Command Prompt in Windows 7? (Pretty much the same applies to Windows 10)

Cheers.

 

 

 

 

Posted by uniqueone
,

pycharm에서 from graphviz import Source에서 'ModuleNotFoundError: No module named 'graphviz' 이런 에러가 났다. 

'conda install graphviz'라고 실행해서 설치해도 pycharm에서 인식을 못했다. 구글 검색해보니 stackoverflow.com/questions/49308693/why-cant-i-import-graphviz 에서 pip로 하면 될 수 있다고 해서 

'pip install graphviz'라고 실행해서 설치하니 pycharm에서 인식했다.

핸즈온 머신러닝2판 에서 "옮긴이_ 아나콘다 배포판 이용자는 'conda install python-graphviz' 명령으로 파이썬 패키지와 함께 graphviz를 설치하여 주피터 노트북에서 트리 그래프를 직접 그릴 수 있습니다."라고 한다. 'conda install python-graphviz'라고 했어도 해결됐을지도 모르겠다. 

Posted by uniqueone
,

https://jybaek.tistory.com/576 이곳을 참고했음.

File -> Settings -> 왼쪽의 Project: xxx / Project Interpreter -> 오른쪽 상단 톱니버튼(설정) -> Add -> Add Python Interpreter 창에서 왼쪽에 'Virtualenv Environment'선택된 상태에서 오른쪽에 -> Base interpreter에 '찾아보기'버튼을 눌러 생성된 virtualenv위치를 선택해준다 ex) C:\ProgramData\Anaconda3\envs\venv10\python.exe

OK 몇개 누르면 pycharm이 연동작업한다.

Posted by uniqueone
,

찾아보니 아래와 같이 3가지 방법으로 의견이 나뉜다.

 

 

1. File - Invalidate Caches / Restart - Invalidate and Restart를 누르면 해결된다 한다.

 

 

2. 'delete 'caches' folder in user/.IntellIJIdea13/system/ '

즉, C:\Users\User\.PyCharmCE2017.2\system\에 있는 caches폴더를 삭제한다.

 

https://stackoverflow.com/questions/15991561/intelli-j-idea-takes-forever-to-update-indices

 

3.

Preferences > Project Settings > Project Structure

Select the symlink and exlcude it from the project. This will prevent Pycharm from including and indexing the folder.

https://stackoverflow.com/questions/24955896/pycharm-indexing-goes-into-infinite-loop

 

File - Settings - Project: yourprojectname - Project Structure - Right click on folder and press "Excluded"

https://stackoverflow.com/questions/29030682/pycharm-4-0-5-hangs-on-scanning-files-to-index-background-task

 

Posted by uniqueone
,