| name | python |
| description | Execute Python scripts and code using the user's Anaconda Python installation at C:\Users\29165\anaconda3\python.exe. Use this skill when the user needs to run Python code, execute Python scripts, install Python packages, or perform any Python-related tasks. |
Python Skill
This skill provides access to the user's Python installation located at:
C:\Users\29165\anaconda3\python.exe
画图要支持中文:
2. CHINESE FONT SUPPORT (Critical for Windows)
plt.rcParams['font.sans-serif'] = ['SimHei', 'Microsoft YaHei', 'SimSun', 'Arial'] plt.rcParams['axes.unicode_minus'] = False # Fix minus sign display issue
Instructions
File Organization:
- Store all raw data files in the
data/directory - Place all intermediate files and scripts in the
workspace/directory - Save all final results and outputs to the
result/directory - This keeps your project organized and makes it easy to clean intermediate files
To execute a Python script file:
"C:\Users\29165\anaconda3\python.exe" script.pyTo run Python code directly:
"C:\Users\29165\anaconda3\python.exe" -c "print('Hello, world!')"To install Python packages:
"C:\Users\29165\anaconda3\python.exe" -m pip install package-nameTo check Python version:
"C:\Users\29165\anaconda3\python.exe" --versionTo run a Python module:
"C:\Users\29165\anaconda3\python.exe" -m module_name
Important Notes
- Always use double quotes around the path in Bash commands:
"C:\Users\29165\anaconda3\python.exe" - The user's Python installation includes Anaconda, so it has many scientific computing packages pre-installed
- Use
python.exefor all Python operations (command-line scripts and applications)
Examples
Example 1: Run a script with proper file organization
# Raw data in data/, script in workspace/, output to result/
"C:\Users\29165\anaconda3\python.exe" workspace/data_processor.py --input data/raw_data.csv --output result/processed_data.csv
Example 2: Execute one-liner
"C:\Users\29165\anaconda3\python.exe" -c "import numpy as np; print(np.__version__)"
Example 3: Install package
"C:\Users\29165\anaconda3\python.exe" -m pip install pandas
Example 4: Run Jupyter notebook
"C:\Users\29165\anaconda3\python.exe" -m notebook
When to Use This Skill
- User asks to run Python code or scripts
- User needs to install Python packages
- User wants to check Python version or environment
- User requests data analysis, machine learning, or scientific computing tasks
- User needs to execute any Python-based tool or utility