我昨天更新了pip,从那以后我就不能用pip安装任何东西了。我知道错误:
ERROR: No .egg-info directory found in C:\Users\(my username)\AppData\Local\Temp\pip-pip-egg-info-7kf6p_vq
我已经尝试卸载python,并重新安装它,并将pip降级到我认为我上次拥有的版本。
运行python 3.9。我看了其他堆叠溢出的帖子,但是到目前为止我还没有工作过。
我使用的是NN模块,版本0.0.9,tensorflow 1.13.1和python 3.6。我在加载nn模块时遇到问题,因为"from tensorflow import *“失败。在下面给出了堆栈跟踪。谢谢你的帮助。 File "./train.py", line 9, in <module>
import nn
File "/home/dario/.local/lib/python3.6/site-packages/nn/__init__.py", line 20, in <module>
from . imp
这是完整的错误日志-
C:\Dev\libpython\src>pipenv install
Creating a virtualenv for this project…
Pipfile: C:\Dev\libpython\src\Pipfile
Using C:/Python/Python36-64/python.exe (3.6.6) to create virtualenv…
Running virtualenv with interpreter C:/Python/Python36-64/python.exe
Using base prefix 'C:\\Python\
在以下行中出现问题: from keras import backend as K 我正在转换一个python源代码,它使用tensorflow和keras API来测试数据。在Windows操作系统中使用pyinstaller将其转换为exe。我得到以下与astor文件版本相关的错误。我不知道为什么在执行exe文件后会出现这个错误。在使用Python3.7 tensorflow==1.15 keras==2.0.3以python filename.py的身份运行源代码时,我没有收到任何错误 from keras import backend as K被写在外部文件中,外部文件被导入到主文件
我已经尝试了geopandas的documentation中的所有安装方法,但都不起作用。 conda install geopandas给出 UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your C
我正在运行tensorflow的教程,并注意到导入tensorflow会导致错误。
>>> import tensorflow
错误:
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
我在MacOS virtualenv环境中安装了python3、tensorflow和keras,当我尝试在python3中导入keras时,我得到了以下错误:
Python 3.7.0 (default, Aug 22 2018, 15:22:33)
[Clang 9.1.0 (clang-902.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
我尝试从ndimage包中导入SciPy包,以使用其中的最大筛选器。然而,SciPy似乎错过了这个部分。我发现了一个错误:
from scipy.linalg import _fblas
ImportError: DLL load failed: The specified module could not be found.
我甚至(分别)尝试了这些:
import scipy.ndimage
from scipy.ndimage.filters import maximum_filter
import ndimage form scipy
但我仍然得到相同的错误。
完全错误是:
Trac
首先,这个问题是而不是和一样。
我遇到的问题是,当我试图绘制一个在一个单元格中包含一个numpy NaN的NaN时,我会得到一个错误:
C:\>\Python33x86\python.exe
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>
嘿,我正在尝试将我的Keras模型转换为CoreML,但我一直收到这个错误: tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: using a tf.Tensor as
a Python bool is not allowed in Graph execution. Use Eager execution or decorate this
function with @tf.function. 下面是我的代码: import keras
import coremltools
import ten
我最近将ubuntu从16.04升级到17.10。之后,当我尝试
sudo pip install jupyter
graphlab-create 2.1 has requirement decorator==4.0.9, but you'll have decorator 4.3.0 which is incompatible.
graphlab-create 2.1 has requirement requests==2.9.1, but you'll have requests 2.18.1 which is incompatible.
Cannot uninstal
我使用所做的计算是在Python3.9.9中运行时给出nan,但在Python2.7.18中工作得很好。我需要它在Python 3中运行,因为我的程序的其余部分都是针对那个版本的。
我尝试过将所有的数字转换成相同的浮动类型并舍入数字,但是似乎没有什么能使它在Python 3中工作。我已经包括了我的代码和不同版本的输出。
代码
from scipy.stats import hypergeom
k = 526.8499999999999
nmk = 409.823
n = 936.6729999999999
m = 30079.555399999997
N = 59416.28