Python dans un environnement JMP peut-il obtenir l'environnement vscode ?Merci les experts !
Il existe une interface de données qui nécessite un interpréteur Python 32 bits pour la recevoir. Pour émuler vscode exécutant ce python 32 bits.
Les opérations ci-dessus peuvent être implémentées en Python dans l'environnement JMP
Ses exigences d'installation d'origine sont :
#Create a 32-bit Python environment
conda create --name stock python=3.8 --platform win-32
#Change the conda source
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/
conda config --set show_channel_urls yes
#Change the pip source
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
#Install necessary libraries
pip install pywin32
pip install pytz
#Then pywin32 needs to be installed manually
python
C:\Users\tj07166.conda\envs\stock\Scripts\pywin32_postinstall.py -install
#Use Git to manage projects
First, create a remote repository, and then conduct git init locally to create a local repository.
Write a .gitignore file, and after performing add and commit, push it to the remote branch.
Install Git on the remote host, generate an SSH public key and fill it into the GitHub repository.
Use git clone.
Automatisation et scriptsFenêtresRe : Python dans un environnement JMP peut-il obtenir l'environnement vscode ?système d'exploitation win10
Re : Python dans un environnement JMP peut-il obtenir l'environnement vscode ?Re : Python dans un environnement JMP peut-il obtenir l'environnement vscode ?pywin32 ne signifie pas Python 32 bits, c'est un wrapper pour l'interface COM Win32. Vous pouvez installer pywin32 directement dans l'environnement JMP qui est 64 bits.
import jmp
from jmputils import jpip
jpip('install', 'pywin32')
from win32com.client import Dispatch
...Re : Python dans un environnement JMP peut-il obtenir l'environnement vscode ?Merci les experts !
