[英]How to find which version of RxPY I'm using?
I can't remember which version of RxPY I installed and the obvious does not seem to work: 我不记得我安装了哪个版本的RxPY ,显然它似乎不起作用:
In[33]: import rx
In[34]: rx.__version__
Traceback (most recent call last):
File "C:\Program Files\Python\2.7\lib\site-packages\IPython\core\interactiveshell.py", line 3035, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-34-b9c56e77da3a>", line 1, in <module>
rx.__version__
AttributeError: 'module' object has no attribute '__version__'
In[35]: any(map(lambda x: 'version' in x.lower(), dir(rx)))
Out[35]: False
Also, help
doesn't contain the version: 另外,
help
不包含版本:
In[38]: help(rx)
Help on package rx:
NAME
rx
FILE
c:\Program Files\python\2.7\lib\site-packages\rx\__init__.py
PACKAGE CONTENTS
abstractobserver
anonymousobservable
anonymousobserver
autodetachobserver
backpressure (package)
blockingobservable
checkedobserver
concurrency (package)
disposables (package)
internal (package)
joins (package)
linq (package)
notification
observable
observeonobserver
observer
scheduledobserver
subjects (package)
testing (package)
DATA
Future = None
asyncio = None
config = {'Future': None, 'Lock': <function RLock>, 'asyncio': None}
If you are using pip
then just run pip list
. 如果您使用的是
pip
则只需运行pip list
。
This will show you the installed packages and their versions. 这将向您显示已安装的软件包及其版本。
You are looking for a package called Rx
. 您正在寻找一个名为
Rx
的软件包。 You could combine with grep
(depending on OS / Shell). 您可以与
grep
结合使用(取决于OS / Shell)。 See screenshot below: 请参见下面的屏幕截图:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.