×ðÁú¿­Ê±¹ÙÍøµÇ¼

ÔÚLinuxϵͳÉÏʹÓÃPyCharm¾ÙÐдóÊý¾ÝÆÊÎöµÄÉèÖÃÒªÁì

ÔÚlinuxϵͳÉÏʹÓÃpycharm¾ÙÐдóÊý¾ÝÆÊÎöµÄÉèÖÃÒªÁì

¸ÅÊö£º

PyCharmÊÇÒ»¿î¹¦Ð§Ç¿Ê¢µÄPython¼¯³É¿ª·¢ÇéÐΣ¨IDE£©£¬ËüÌṩÁËÒ»Ì×ÍêÕûµÄ¿ª·¢¹¤¾ß£¬Àû±ã´óÊý¾ÝÆÊÎöʦ¾ÙÐиßЧµÄ±àÂëºÍÊý¾Ý´¦Àí¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ÏÈÈÝÔõÑùÔÚLinuxϵͳÉÏ×°ÖúÍÉèÖÃPyCharmÀ´¾ÙÐдóÊý¾ÝÆÊÎö¡£

°ì·¨Ò»£º×°ÖÃJavaÇéÐÎ

ÓÉÓÚPyCharmÊÇ»ùÓÚJava¿ª·¢µÄ£¬Ê×ÏÈÐèÒªÔÚLinuxϵͳÉÏ×°ÖÃJavaÇéÐΡ£¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´×°ÖÃJavaÇéÐΣº

sudo apt-get update
sudo apt-get install default-jdk

µÇ¼ºó¸´ÖÆ

×°ÖÃÍê³Éºó£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´ÑéÖ¤JavaÇéÐÎÊÇ·ñ×°ÖÃÀֳɣº

java -version

µÇ¼ºó¸´ÖÆ

°ì·¨¶þ£ºÏÂÔغÍ×°ÖÃPyCharm

½ÓÏÂÀ´£¬ÎÒÃÇÐèÒªÏÂÔز¢×°ÖÃPyCharm¡£¿ÉÒÔÔÚJetBrains¹ÙÍøÉÏÏÂÔØPyCharm Community EditionµÄ×îа汾¡£ÏÂÔØÍê³Éºó£¬Ê¹ÓÃÒÔÏÂÏÂÁîÀ´½âѹ²¢×°ÖÃPyCharm£º

tar -xzvf pycharm-community-*.tar.gz

µÇ¼ºó¸´ÖÆ

¿ÉÒÔ½«½âѹ»ñµÃµÄÎļþ¼ÐÒƶ¯µ½ÄãÏëÒªµÄ×°ÖÃĿ¼£º

mv pycharm-community-* /opt/pycharm

µÇ¼ºó¸´ÖÆ

°ì·¨Èý£ºÆô¶¯PyCharm

·­¿ªÖնˣ¬ÔËÐÐÒÔÏÂÏÂÁîÀ´Æô¶¯PyCharm£º

cd /opt/pycharm/bin
./pycharm.sh

µÇ¼ºó¸´ÖÆ

PyCharm½«»áÆô¶¯£¬²¢·ºÆð½Ó´ý½çÃæ¡£

°ì·¨ËÄ£ºÉèÖÃPythonÚ¹ÊÍÆ÷

ÔÚPyCharmÖУ¬ÎÒÃÇÐèÒªÉèÖÃPythonÚ¹ÊÍÆ÷À´ÔËÐÐÎÒÃǵĴúÂë¡£ÔÚ½Ó´ý½çÃæÖУ¬µã»÷”Configure”°´Å¥È»ºóÑ¡Ôñ”Preferences”¡£

ÔÚ”Preferences”´°¿ÚÖУ¬ÕÒµ½”Project: YourProjectName”ϵĔProject Interpreter”Ñ¡Ïî¡£µã»÷ÓÒ²àµÄ”Add”°´Å¥£¬Ñ¡ÔñÄãÒѾ­×°ÖúõÄPythonÚ¹ÊÍÆ÷µÄ·¾¶¡£

°ì·¨Î壺µ¼Èë´óÊý¾ÝÆÊÎöµÄÒÀÀµ°ü

ÔÚ´óÊý¾ÝÆÊÎöÖУ¬ÎÒÃÇͨ³£»áʹÓÃһЩµÚÈý·½µÄPython¿âÀ´¾ÙÐÐÊý¾Ý´¦Àí¡£ÔÚPyCharmÖУ¬¿ÉÒÔʹÓÔpip”À´×°ÖÃÕâЩ¿â¡£ºÃ±È£¬ÈôÊÇÄãÏë×°ÖÃpandas¿â£¬¿ÉÒÔÔÚÖÕ¶ËÖÐÔËÐÐÒÔÏÂÏÂÁ

pip install pandas

µÇ¼ºó¸´ÖÆ

×°ÖÃÍê³Éºó£¬PyCharm½«»á×Ô¶¯µ¼ÈëÕâЩ¿â£¬Äã¿ÉÒÔÔÚÄãµÄ´úÂëÖÐÖ±½ÓÒýÓÃËüÃÇ¡£

°ì·¨Áù£º½¨ÉèºÍÔËÐдóÊý¾ÝÆÊÎö´úÂë

ÏÖÔÚ£¬Äã¿ÉÒÔÔÚPyCharmÖн¨ÉèÒ»¸öеÄPythonÎļþ£¬È»ºó±àдÄãµÄ´óÊý¾ÝÆÊÎö´úÂëÁË¡£ÒÔÏÂÊÇÒ»¸ö¼òÆÓµÄʾÀý£º

import pandas as pd

# ¶ÁÈ¡CSVÎļþ
data = pd.read_csv('data.csv')

# ´òÓ¡Ç°10ÐÐÊý¾Ý
print(data.head(10))

# ͳ¼ÆÊý¾ÝµÄÐÎòͳ¼ÆÁ¿
print(data.describe())

µÇ¼ºó¸´ÖÆ

ÔÚPyCharmÖУ¬Äã¿ÉÒÔÖ±½ÓÔËÐÐÕâ¸ö´úÂë¡£µã»÷²Ëµ¥À¸ÖеĔRun”°´Å¥£¬Ñ¡Ôñ”Run ‘your_file_name.py’ “¡£´úÂ뽫»á±»Ö´ÐУ¬²¢ÔÚÖն˴°¿ÚÖÐÏÔʾЧ¹û¡£

×ܽ᣺

ÔÚ±¾ÎÄÖУ¬ÎÒÃÇÏÈÈÝÁËÔÚlinuxϵͳÉÏʹÓÃpycharm¾ÙÐдóÊý¾ÝÆÊÎöµÄÉèÖÃÒªÁ졣ͨ¹ý×°ÖÃJavaÇéÐΡ¢ÏÂÔغÍ×°ÖÃPyCharm¡¢ÉèÖÃPythonÚ¹ÊÍÆ÷£¬ÎÒÃÇ¿ÉÒÔÔÚPyCharmÖоÙÐиßЧµÄ´óÊý¾ÝÆÊÎöÊÂÇ顣ͬʱ£¬ÎÒÃÇ»¹Í¨¹ýÒ»¸ö¼òÆӵĴúÂëʾÀýչʾÁËÔõÑùʹÓÃPyCharm¾ÙÐÐÊý¾Ý´¦ÀíºÍÆÊÎö¡£Ï£ÍûÕâƪÎÄÕ¹ØÓÚÏëÒªÔÚLinuxϵͳÉÏʹÓÃPyCharm¾ÙÐдóÊý¾ÝÆÊÎöµÄ¶ÁÕßÓÐËù×ÊÖú¡£

ÒÔÉϾÍÊÇÔÚLinuxϵͳÉÏʹÓÃPyCharm¾ÙÐдóÊý¾ÝÆÊÎöµÄÉèÖÃÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ