python
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.
When & Why to Use This Skill
This Claude skill enables the seamless execution of Python scripts and code directly within a local Anaconda environment. It is designed for high-performance tasks including data analysis, scientific computing, and automated workflows, featuring built-in support for Chinese font rendering in visualizations and a structured file organization system to ensure professional project management.
Use Cases
- Data Analysis & Visualization: Process large datasets using Pandas and generate professional charts with Matplotlib, including full support for Chinese character display.
- Automated Script Execution: Run local Python scripts for file manipulation, system automation, or batch processing within a structured directory (data/workspace/result).
- Environment & Package Management: Dynamically install and update Python libraries using pip to extend the agent's capabilities for specific technical requirements.
- Scientific Computing: Leverage the pre-installed Anaconda suite for complex mathematical modeling, machine learning experiments, and statistical simulations.
| 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