Manual:Pywikibot/Installation/ko

compat 버전을 설치하거나 업데이트하려면 을 참고하세요, SVN을 통해 설치하거나 업데이트하려면 을 참고하세요.

초기 설치
There are the following basic steps to installing pywikibot:
 * 1) Download or update Python,
 * 2) Download pywikibot,
 * 3) Configure pywikibot's basic settings.

파이썬 다운로드

 * 유닉스 시스템: 일반적으로 최근 버전의 파이썬이 설치되어 있습니다. 로 확인하세요.


 * Mac OS X 10.8+: pywikibot을 충분히 구동할 수 있는 파이썬이 설치되어 있습니다. 만약 오래된 버전의 OS X를 사용하거나 확실하지 않다면, http://www.python.org/downloads/에서 파이썬 2.7.10을 다운로드하고 설치하세요.


 * Windows: http://www.python.org/downloads/에서 최신 버전인 파이썬 2.7.10을 다운로드하고 설치하세요.


 * 파이썬 버전: 지원되는 파이썬 버전들입니다:

Due to a Unicode bug in the underlying python library, Python 2.7.0 and 2.7.1 are not supported using the Core branch. See also the requirements for a bot, which describes needed python version and pywikibot branches.

Pywikibot 다운로드
Pywikibot을 다운로드하는 가장 쉬운 방법은 최신 나이틀리 릴리즈를 이용하는 것입니다. 그냥 zip파일을 다운로드하고 압축만 해제하세요. 또 따른 설치가 필요하지 않습니다.

Git으로 Pywikibot 다운로드
For installing with Git you need to run: With the  option it automatically installs the required submodules. Currently there is one submodules (i18n), which is really required even for English language bots.

Shortcut in command line
To allow your source code to be developed outside of the pywikibot source directory, add something like: to a file that gets run on login, usually ~/.bashrc - this avoids typing the export PYTHONPATH part in each time you log in. Naturally, change paths to match your installation.

Similarly, you can set the PYWIKIBOT2_DIR environment variable to specify the directory in which user-specific information is stored (in particular, user-config.py which contains login data for the bot).

Updating
The pywikibot framework is a perpetual beta software. Bugfixes, new options, new behavior and changes of the mediawiki software leads to frequently new releases and needs the working copy code to be up to date. Please update your branch regularly (daily period or at least once a week).

Updating nightly dump

 * If you are using a nightly version, the process is a bit more complicated. You have to re-download a full copy from here. Before installing it, backup your configuration files and scripts (user-config.py, any family file, or custom script that you might have created, and any current dump XML file you're using for a wiki). Replace your pywikibot directory by the new version you just downloaded. Restore your configuration files. If you're not sure of what you're doing, do not erase but keep a backup of your complete old pywikibot directory, to avoid losing any important files.

If you have changed some scripts of the framework, you have to merge the differences by yourself. Version control systems like git or svn does it automatically.

Updating git

 * If you used Git for downloading Pywikibot, you must go to the your directory and run the following command:


 * You may need to do  as well, if you need up-to-date i18n files.

Dependencies
Use  package management system to install dependencies. It is included by Python 2.7.9 and Python 3.4. To install all dependencies just run the following command (keeping in mind that some dependencies will require MySQL Connector C++ Libraries):

For a single package use:

To uninstall a single package use:

Creating user files
As a final step before using the bot scripts, you have to create user configuration files. The main one is. If you execute your favorite script after installation (for example, ) then pywikibot ask questions on how you want to configure your local copy and will create these files. You can also run generate user files.py to create these files.

Running Pywikibot under Windows
Please notice the instruction at Manual:Pywikibot/Windows.

Verifying your installation
With the core branch, entering in the command line python pwb.py login should prompt for the login password for your bot, and then report Logged in on somewiki:lang as bot username.