小编Agu*_*nel的帖子

警告 conda.gateways.disk:unlink_or_rename_to_trash(140)

当我尝试在我的环境中安装 pytorch 时出现此错误,我找到了需要删除的文件,但是,我要删除四个文件中的哪一个?

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

python anaconda conda

5
推荐指数
1
解决办法
5022
查看次数

对 null 调用成员函数 getRelationExistenceQuery()

当我尝试运行种子时出现错误。

这是错误:

在供应商/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php:49 45| $method = $this->canUseExistsForExistenceCheck($operator, $count) 46| ?'getRelationExistenceQuery' 47 | : 'getRelationExistenceCountQuery'; 48|

49| $hasQuery = $relation->{$method}( 50| $relation->getRelated()->newQueryWithoutRelationships(), $this 51| ); 52| 53| // 接下来我们将调用任何给定的回调作为“匿名”范围,以便他们可以获得

  +3 vendor frames
Run Code Online (Sandbox Code Playgroud)

4 数据库/工厂/UserFactory.php:59 Illuminate\Database\Eloquent\Model::__callStatic()

  +6 vendor frames
Run Code Online (Sandbox Code Playgroud)

11 [内部]:0 Illuminate\Database\Eloquent\FactoryBuilder::Illuminate\Database\Eloquent{closure}()

这是工厂:

use App\User;
use App\Category;
use App\Product;
use App\Transaction;
use App\Seller;
use Faker\Generator as Faker;
use Illuminate\Support\Str;

$factory->define(User::class, function (Faker $faker) {
    static $password;
    return [
        'name' => $faker->name,
        'email' => $faker->unique()->safeEmail,
        'email_verified_at' => now(),
        'password' => $password ?: $password …
Run Code Online (Sandbox Code Playgroud)

laravel

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

anaconda ×1

conda ×1

laravel ×1

python ×1