[pyperclip] plain text 클립보드 사용하기
주소를 복붙하는데 사용한 아주 심플한 클립보드 사용 라이브러리
# 확인 환경
Win10/Python3.4
# 설치 방법 :
pip install pyperclip
>>> import pyperclip
>>> pyperclip.copy('The text to be copied to the clipboard.')
>>> pyperclip.paste()
'The text to be copied to the clipboard.'
윈도우에서는 다른 모듈 설치 없이 바로 사용 가능
다른 플랫폼도 큰 무리는 없을 것 같은데, 자세한 내용은 아래 링크에서 확인 가능
Git : https://github.com/asweigart/pyperclip
(cx_freeze) Python3.5 cx_freeze 설치 에러 해결 시도
building 'cx_Freeze.util' extension
error: Unable to find vcvarsall.bat
이런 에러 나올 때
After doing a lot of things, I upgraded pip, setuptools and virtualenv.
python -m pip install -U pippip install -U setuptoolspip install -U virtualenv
I did steps 1, 2 in my virtual environment as well as globally. Next, I installed the package through pip and it worked.
이걸로 시도
결과적으로 파이썬 3.5 에서 하는 것을 포기했다.
매우 번거롭지만 파이썬 버전을 다운그레이드 했다.
3.4에서 별다른 세팅 없이 cx_freeze 설치 및 동작이 가능했다.
(cx_freeze) 파이썬 비쥬얼스튜디오 cpp build tools url
http://landinghub.visualstudio.com/visual-cpp-build-tools
cx_freeze 설치 오류 해결을 위해 재 다운로드 했던 것
cx_freeze 라이브러리 설치 할 때 나오는 메시지라서 올렸는데
비쥬얼 스튜디오 커뮤니티에 이미 포함 된 내용이라 받을 필요 없다.
파이썬 3.5에서는 pip install cx_freeze 로 설치가 제대로 되지 않는다.
3.4 에서는 문제가 없으니 3.4로 파이썬 버전을 내려서 해결했다.