我正在尝试在Vagrant VM中运行PHP文件,该VM也使用composer进行构建。
我收到以下错误:
import pandas as pd
df = pd.DataFrame({'x':['a','b','c','d','a','a']})
df.x.value_counts()
a 3
b 1
d 1
c 1
Name: x, dtype: int64
### using groupby:
df.groupby('x').size()
x
a 3
b 1
c 1
d 1
dtype: int64
据我所知,这个特定的功能或其他任何东西都不应该要求phpseclib(尽管我还没有100%确认其他任何东西)。
即便如此,我决定将它添加到我的composer.json(“phpseclib / phpseclib”:“2.0.4”)中以摆脱错误,没有运气。
我是Composer的新手,所以我想知道我在这里做错了什么或者需要设置什么。
我可以确认目录PHP Warning: require(/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/bootstrap.php): failed to open stream: No such file or directory in /var/www/ispe/vendor/composer/autoload_real.php on line 66
Warning: require(/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/bootstrap.php): failed to open stream: No such file or directory in /var/www/CLIENT/vendor/composer/autoload_real.php on line 66
PHP Fatal error: require(): Failed opening required '/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/bootstrap.php' (include_path='.:/usr/share/php') in /var/www/CLIENT/vendor/composer/autoload_real.php on line 66
Fatal error: require(): Failed opening required '/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/bootstrap.php' (include_path='.:/usr/share/php') in /var/www/CLIENT/vendor/composer/autoload_real.php on line 66
存在,但目录中没有文件bootstrap.php。
相反,我看到以下内容:
/var/www/CLIENT/vendor/composer/../phpseclib/phpseclib/phpseclib/
编辑:我还想澄清文件autoload.php在供应商目录中,并且VM的PHP版本是7.0。
答案 0 :(得分:3)
我坚信cache
是问题所在,它不能100%确定但是会尝试销毁您的Vagrant实例,或者
您可以按照以下步骤操作:
vendor
文件夹composer.lock
composer clearcache
(或clear-cache
)composer install
希望这有帮助!