Comments (6)
Does this work?
ipy -X utf8 setup.py install
from ironpython3.
- The command worked well
- I even checked that it was installed in test_package-py3.4.egg\site-package folder
- However, I have two questions
- When I try to import a package from ironpython Console, There is an Importerror: No module named
>>> import test
Trackback (most recent call last):
ImportError: No module named 'test'
- How do I delete the package?
c:\test>ipy -X utf8 pip uninstall test
Uninstalling test_package:
Would remove:
c:\program files\ironpython 3.4\lib\site-packages\test_package-py3.4.egg
Proceed (y/n)? Error: Exceptions
Traceback (most recent call last):
FIle "...\site-packages\pip\_internal\cli\base_command.py", line 178, in main status = self.run(options, args)
...
File "...\pip\_internal\req\req_uninstall.py", line 425, in _allowed_to_proceed
return ask('Proceed (y/n)? ', ('y', 'n')) == 'y'
File "...\pip\_internal\utils\misc.py", line 183, in ask response = input(message)
Lookyperror: unknown encoding: ks_c_5601_1987
from ironpython3.
For the import error I'm not sure. Looking at the uninstall error I guess you package is an egg
file? Does it appear in your sys.path
? For example:
['.', 'C:\\Program Files\\IronPython 3.4\\lib', ..., 'C:\\Program Files\\IronPython 3.4\\lib\\site-packages', 'C:\\Program Files\\IronPython 3.4\\lib\\site-packages\\mytest-0.1-py3.4.egg']
I don't know much about egg
files, but I think they're basically just zip
files. Once they're in sys.path
the import mechanism should be able to load them. It looks like this is normally done via .pth
files...
For the package deletion, you could try: ipy -m pip uninstall -y test
so it skips the input prompt (which has issues with encoding).
from ironpython3.
- When the command "ipy -X utf8 pip list" is executed, the test_package will be displayes
- Of course, the file also exists in the path below as follows
c:\program files\Ironpython 3.4\Lib\site-packages\test_package-24.3.15.10-py3.4.egg\
- In addition, after completing the installation of the package in python, we are importing and using it without "sys.path.append"
- Finally, I already know the command, but I additionally inquire if it can be executed without the following error message
ipy -X utf8 pip uninstall test
Lookuperror: unknown encoding: ks_c_5601_1987
from ironpython3.
* Finally, I already know the command, but I additionally inquire if it can be executed without the following error message
I was suggesting trying the command with the -y
argument: ipy -m pip uninstall -y test
from ironpython3.
I am always grateful for your kind explanations.
- That will be the last question
- There is a folder(./IronPython 3.4/Lib/site-packages/daactor_package-24.3.15.10-py3.4.egg)
- i checked package list
c:\>ipy -X utf8 -m pip list
pip 19.1.1
...
daactor-package 24.3.15.10
- in site-packages/easy-install.pth file
./daactor_package-24.3.15.10-py3.4.egg
- I confirmed that the following input works normally in window cmd
c:\>ipy -X utf8
>>> ironpython 3.4.1 ... for more information
>>> import daactor #it was good working
>>> sys.path
['.', 'c:\\IronPython 3.4\\', 'c:\\IronPython 3.4\\Lib', 'c:\\IronPython 3.4\\lib\\site-packages\\daactor_package-24.3.15.10-py3.4.egg']
- I run IronPython Console
>>> Ironpython 3.4.1 ... for more information
>>> import daactor
ImportError: no module named 'daactor'
>>> sys.path
['.', 'c:\\Ironpython 3.4\\lib', 'c:\\Ironpython 3.4\\Lib\\site-packages', c:\\Ironpython 3.4\\DLLs', 'c:\\Ironpython 3.4']
- However, I could not import daactor package
- How can I import daactor package in ironPython console?
from ironpython3.
Related Issues (20)
- "not a Zip file" - what does it mean?! HOT 2
- input function throws: LookupException: unknown encoding: utf_8 HOT 6
- NullReferenceException while creating IronPython engine in referenced project HOT 4
- no module named errno HOT 4
- No way to programmatically stop execution HOT 8
- future feature is not defined HOT 1
- IronPython
- The ipyc /out: option dose not change the output path of exe host
- IronPython.Runtime.Exceptions.ImportException: 'No module named 'xml.etree.ElementTree'' HOT 5
- Calling method with an argument of ReadOnlySpan<char> throws ArgumentException
- Ironpython version 3.4.1 Exception at runtime console application HOT 1
- big-data examples: using apache beam or spark
- "Index was outside the bounds of the array" exception thrown when importing a class with hundreds of properties HOT 3
- Extension binder fails to resolve overloads with nested generics
- How to support IronPython 2.7 and 3.4 in one app? HOT 1
- If call Python and there is an infinite loop in Python, where can set the timeout?
- v3: Embedding in a web site - build warnings about WindowsBase HOT 2
- Error with running IronPython 3.4.1 on existing Windows .NET4.7.2 project HOT 1
- Cannot install pip package if package contains native code that should be compiled during install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ironpython3.