Now use the.net project, need to call to python script
She has a problem, original with Ironpython to invoke the py script, no problem,
But now py script reference the third-party libraries,, no module has arisen in.net named 'mysql' mistakes, such as
I have installed the third-party in Ironpython, but still have no way to solve,
Could you tell me the.net combined with Python, with what method better?
Consult!
CodePudding user response:
The above typo,Is pymysql..
Another question, whether in ironpython cannot install numpy?
CodePudding user response:
Lack of mysql module with PIP command to install, lack what install what!CodePudding user response:
Has been put on,,,, or you will be prompted without this module,By PY file
Add
The import sys
Sys. Path. Append (r "c: \ program files \ ironpython2.7 \ lib "), such as directory
A few words of code after
Don't appear no module named mistake
But the emergence of new problems,
In debugging in Microsoft.net. Scripting. SyntaxErrorException: "unexpected token '='"
Error
There is no solution!
CodePudding user response:
Solve a problem,,PY file changes add SYS. Directory PATH can solve the problem of can't find the MODULE
But the IronPython can't install numpy? Is there a way to solve?
CodePudding user response:
If you don't use Ironpython, is there any better way in the call python code in.net?A python environment installation, run in the CMD, a python generated exe files to call again,
What are the other better ways to achieve?